]> code.delx.au - gnu-emacs/commitdiff
(describe-variable): Fix test for customizability.
authorDave Love <fx@gnu.org>
Tue, 20 Jul 1999 16:38:23 +0000 (16:38 +0000)
committerDave Love <fx@gnu.org>
Tue, 20 Jul 1999 16:38:23 +0000 (16:38 +0000)
lisp/help.el

index b0ca05a747447672f1d8e33fcf97ec574643ffd8..d2da9a55b5ab1208a219ebb8cef5b727476479cf 100644 (file)
@@ -768,9 +768,9 @@ Returns the documentation as a string, also."
          ;; Note, it is not reliable to test only for a custom-type property
          ;; because those are only present after the var's definition
          ;; has been loaded.
-         (if (or (user-variable-p variable)
-                 (get variable 'custom-loads)
-                 (get variable 'custom-type))
+         (if (or (get variable 'custom-type) ; after defcustom
+                 (get variable 'custom-loads) ; from loaddefs.el
+                 (get variable 'standard-value)) ; from cus-start.el
              (let ((customize-label "customize"))
                (terpri)
                (terpri)