aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Rost2003-01-07 19:17:46 +0000
committerMarkus Rost2003-01-07 19:17:46 +0000
commit13eb72d26e421da3eb699eda7a4215177854ff31 (patch)
tree87f25c5571f30c56f067749e37497c1b10a0875d
parent9c46b00aa1e5b1b626ec79bdadb373a5c636159d (diff)
downloademacs-13eb72d26e421da3eb699eda7a4215177854ff31.tar.gz
emacs-13eb72d26e421da3eb699eda7a4215177854ff31.zip
(describe-variable): Use custom-variable-p.
-rw-r--r--lisp/help-fns.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 46a72b32ba2..2b61cd88d47 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -464,12 +464,7 @@ it is displayed along with the global value."
464 (terpri)) 464 (terpri))
465 (princ (or doc "Not documented as a variable."))) 465 (princ (or doc "Not documented as a variable.")))
466 ;; Make a link to customize if this variable can be customized. 466 ;; Make a link to customize if this variable can be customized.
467 ;; Note, it is not reliable to test only for a custom-type property 467 (if (custom-variable-p variable)
468 ;; because those are only present after the var's definition
469 ;; has been loaded.
470 (if (or (get variable 'custom-type) ; after defcustom
471 (get variable 'custom-loads) ; from loaddefs.el
472 (get variable 'standard-value)) ; from cus-start.el
473 (let ((customize-label "customize")) 468 (let ((customize-label "customize"))
474 (terpri) 469 (terpri)
475 (terpri) 470 (terpri)