1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-01 20:06:00 +00:00

(describe-variable): Allow any variable with a defcustom,

even if it is not a user variable.
This commit is contained in:
Richard M. Stallman 1998-11-21 03:19:52 +00:00
parent b63e51c5fc
commit be66e132d0

View File

@ -728,10 +728,10 @@ Returns the documentation as a string, also."
(help-setup-xref (list #'describe-variable variable) (interactive-p))
;; Make a link to customize if this variable can be customized.
;; Note, it is not reliable to test for a custom-type property
;; 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 (user-variable-p variable)
(if (or (user-variable-p variable) (get variable 'custom-type))
(let ((customize-label "customize"))
(terpri)
(terpri)