Function: custom-variable-p
custom-variable-p is a byte-compiled function defined in custom.el.gz.
Signature
(custom-variable-p VARIABLE)
Documentation
Return non-nil if VARIABLE is a customizable variable.
A customizable variable is either (i) a variable whose property
list contains a non-nil standard-value or custom-autoload
property, or (ii) an alias for another customizable variable.
Probably introduced at or before Emacs version 24.3.
Aliases
user-variable-p (obsolete since 24.3)
Source Code
;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defun custom-variable-p (variable)
"Return non-nil if VARIABLE is a customizable variable.
A customizable variable is either (i) a variable whose property
list contains a non-nil `standard-value' or `custom-autoload'
property, or (ii) an alias for another customizable variable."
(when (symbolp variable)
(setq variable (indirect-variable variable))
(or (get variable 'standard-value)
(get variable 'custom-autoload))))