Function: custom-add-option
custom-add-option is a byte-compiled function defined in custom.el.gz.
Signature
(custom-add-option SYMBOL OPTION)
Documentation
To the variable SYMBOL add OPTION.
If SYMBOL's custom type is a hook, OPTION should be a hook member. If SYMBOL's custom type is an alist, OPTION specifies a symbol to offer to the user as a possible key in the alist. For other custom types, this has no effect.
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defun custom-add-option (symbol option)
"To the variable SYMBOL add OPTION.
If SYMBOL's custom type is a hook, OPTION should be a hook member.
If SYMBOL's custom type is an alist, OPTION specifies a symbol
to offer to the user as a possible key in the alist.
For other custom types, this has no effect."
(let ((options (get symbol 'custom-options)))
(unless (member option options)
(put symbol 'custom-options (cons option options)))))