Commit 289e1999 authored by Luc Teirlinck's avatar Luc Teirlinck
Browse files

(custom-variable-p): Make it recursively follow aliases. Mention that

in the docstring.
parent c778ed49
......@@ -518,7 +518,9 @@ LOAD should be either a library file name, or a feature name."
;; This test is also in the C code of `user-variable-p'.
(defun custom-variable-p (variable)
"Return non-nil if VARIABLE is a custom variable."
"Return non-nil if VARIABLE is a custom variable.
This recursively follows aliases."
(setq variable (indirect-variable variable))
(or (get variable 'standard-value)
(get variable 'custom-autoload)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment