1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(describe-variable): Check custom-loads property as well as custom-type.

This commit is contained in:
Richard M. Stallman 1999-04-08 16:46:15 +00:00
parent 5cf1c7acbf
commit a4bb8336f9

View file

@ -766,7 +766,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-type))
(if (or (user-variable-p variable)
(get variable 'custom-loads)
(get variable 'custom-type))
(let ((customize-label "customize"))
(terpri)
(terpri)