summaryrefslogtreecommitdiff
path: root/lisp/custom.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-04-12 22:50:58 +0800
committerChong Yidong <cyd@gnu.org>2012-04-12 22:50:58 +0800
commit81927dd2a4205aa38bc5aaa37eb3aa8ab57fb8de (patch)
treebce00e596f093cd9d095cccf87f3e71d622c7c87 /lisp/custom.el
parent893585f47bb9e25d39df66fef9674b6baa25e57e (diff)
downloademacs-81927dd2a4205aa38bc5aaa37eb3aa8ab57fb8de.tar.gz
emacs-81927dd2a4205aa38bc5aaa37eb3aa8ab57fb8de.tar.bz2
emacs-81927dd2a4205aa38bc5aaa37eb3aa8ab57fb8de.zip
New Lisp manual nodes, Applying Customizations and Custom Themes.
* doc/lispref/customize.texi (Applying Customizations): (Custom Themes): New nodes. * doc/lispref/display.texi (Defining Faces): Reference custom-set-faces. * doc/lispref/modes.texi (Defining Minor Modes, Defining Minor Modes): * doc/lispref/os.texi (Startup Summary): Copyedits. * doc/emacs/custom.texi (Creating Custom Themes): Add reference to Custom Themes node in Lisp manual. * lisp/custom.el (custom-theme-set-variables): Doc fix.
Diffstat (limited to 'lisp/custom.el')
-rw-r--r--lisp/custom.el21
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index bffd30bff21..71dcfb424e5 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -934,16 +934,21 @@ Each of the arguments in ARGS should be a list of this form:
(SYMBOL EXP [NOW [REQUEST [COMMENT]]])
-This stores EXP (without evaluating it) as the saved value for SYMBOL.
-If NOW is present and non-nil, then also evaluate EXP and set
-the default value for the SYMBOL to the value of EXP.
+SYMBOL is the variable name, and EXP is an expression which
+evaluates to the customized value. EXP will also be stored,
+without evaluating it, in SYMBOL's `saved-value' property, so
+that it can be restored via the Customize interface. It is also
+added to the alist in SYMBOL's `theme-value' property \(by
+calling `custom-push-theme').
-REQUEST is a list of features we must require in order to
-handle SYMBOL properly.
-COMMENT is a comment string about SYMBOL.
+NOW, if present and non-nil, means to install the variable's
+value directly now, even if its `defcustom' declaration has not
+been executed. This is for internal use only.
+
+REQUEST is a list of features to `require' (which are loaded
+prior to evaluating EXP).
-EXP itself is saved unevaluated as SYMBOL property `saved-value' and
-in SYMBOL's list property `theme-value' \(using `custom-push-theme')."
+COMMENT is a comment string about SYMBOL."
(custom-check-theme theme)
;; Process all the needed autoloads before anything else, so that the