]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Use custom-variable-p.
authorMarkus Rost <rost@math.uni-bielefeld.de>
Tue, 7 Jan 2003 19:17:46 +0000 (19:17 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Tue, 7 Jan 2003 19:17:46 +0000 (19:17 +0000)
lisp/help-fns.el

index 46a72b32ba20a71b472986ba559edd249a92e2c4..2b61cd88d47c559b052d3acd853c56cb911fdd22 100644 (file)
@@ -464,12 +464,7 @@ it is displayed along with the global value."
                 (terpri))
               (princ (or doc "Not documented as a variable.")))
            ;; Make a link to customize if this variable can be customized.
-           ;; 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 (get variable 'custom-type) ; after defcustom
-                   (get variable 'custom-loads) ; from loaddefs.el
-                   (get variable 'standard-value)) ; from cus-start.el
+           (if (custom-variable-p variable)
                (let ((customize-label "customize"))
                  (terpri)
                  (terpri)