aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorMarkus Rost2003-01-07 19:33:57 +0000
committerMarkus Rost2003-01-07 19:33:57 +0000
commit225513e8ce1c3d593197a599a53cdfc1b0afef1e (patch)
treef8d026e1d09789a539f571893625077c508e7294 /src/eval.c
parent3a495e159a63c13c3fd64a7a3ee56a1bc76e8205 (diff)
downloademacs-225513e8ce1c3d593197a599a53cdfc1b0afef1e.tar.gz
emacs-225513e8ce1c3d593197a599a53cdfc1b0afef1e.zip
(Fuser_variable_p): Doc change. For custom variables,
use the same test as for custom-variable-p.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/eval.c b/src/eval.c
index 1bb7cb809f9..5cd50271292 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -830,8 +830,7 @@ DEFUN ("user-variable-p", Fuser_variable_p, Suser_variable_p, 1, 1, 0,
830\(The alternative is a variable used internally in a Lisp program.) 830\(The alternative is a variable used internally in a Lisp program.)
831Determined by whether the first character of the documentation 831Determined by whether the first character of the documentation
832for the variable is `*' or if the variable is customizable (has a non-nil 832for the variable is `*' or if the variable is customizable (has a non-nil
833value of any of `custom-type', `custom-loads' or `standard-value' 833value of `standard-value' or of `custom-autoload' on its property list). */)
834on its property list). */)
835 (variable) 834 (variable)
836 Lisp_Object variable; 835 Lisp_Object variable;
837{ 836{
@@ -852,10 +851,9 @@ on its property list). */)
852 && INTEGERP (XCDR (documentation)) 851 && INTEGERP (XCDR (documentation))
853 && XINT (XCDR (documentation)) < 0) 852 && XINT (XCDR (documentation)) < 0)
854 return Qt; 853 return Qt;
855 /* Customizable? */ 854 /* Customizable? See `custom-variable-p'. */
856 if ((!NILP (Fget (variable, intern ("custom-type")))) 855 if ((!NILP (Fget (variable, intern ("standard-value"))))
857 || (!NILP (Fget (variable, intern ("custom-loads")))) 856 || (!NILP (Fget (variable, intern ("custom-autoload")))))
858 || (!NILP (Fget (variable, intern ("standard-value")))))
859 return Qt; 857 return Qt;
860 return Qnil; 858 return Qnil;
861} 859}