aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-19 12:02:48 +0000
committerEli Zaretskii2008-10-19 12:02:48 +0000
commit437706cd52ee83871580a9c07a84f91c944a1163 (patch)
treeda039ead694428c37efb3f53f55c3e5f7b8d2eaa
parente6f174da18b24ad158102bf49aa6eb338afd3639 (diff)
downloademacs-437706cd52ee83871580a9c07a84f91c944a1163.tar.gz
emacs-437706cd52ee83871580a9c07a84f91c944a1163.zip
(Variable Definitions): Document custom-reevaluate-setting.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/customize.texi25
2 files changed, 30 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 9ced76c8235..ad3a9cfb05c 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12008-10-19 Eli Zaretskii <eliz@gnu.org>
2
3 * customize.texi (Variable Definitions): Document
4 custom-reevaluate-setting.
5
12008-10-18 Martin Rudalics <rudalics@gmx.at> 62008-10-18 Martin Rudalics <rudalics@gmx.at>
2 7
3 * windows.texi (Choosing Window, Deleting Windows) 8 * windows.texi (Choosing Window, Deleting Windows)
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi
index f5f8565b912..4c243e54be3 100644
--- a/doc/lispref/customize.texi
+++ b/doc/lispref/customize.texi
@@ -302,6 +302,12 @@ mode (@code{eval-defun}), a special feature of @code{eval-defun}
302arranges to set the variable unconditionally, without testing whether 302arranges to set the variable unconditionally, without testing whether
303its value is void. (The same feature applies to @code{defvar}.) 303its value is void. (The same feature applies to @code{defvar}.)
304@xref{Defining Variables}. 304@xref{Defining Variables}.
305
306If you put a @code{defcustom} in a file that is preloaded at dump time
307(@pxref{Building Emacs}), and the standard value installed for the
308variable at that time might not be correct, use
309@code{custom-reevaluate-setting}, described below, to re-evaluate the
310standard value during or after Emacs startup.
305@end defmac 311@end defmac
306 312
307 @code{defcustom} accepts the following additional keywords: 313 @code{defcustom} accepts the following additional keywords:
@@ -452,6 +458,25 @@ and @code{saved-value} to record the value saved by the user with the
452customization buffer. Both properties are actually lists whose car is 458customization buffer. Both properties are actually lists whose car is
453an expression which evaluates to the value. 459an expression which evaluates to the value.
454 460
461@defun custom-reevaluate-setting symbol
462This function re-evaluates the standard value of a user-customizable
463variable declared via @code{defcustom}. (If the variable was
464customized, this function re-evaluates the saved value instead.) This
465is useful for customizable options that are defined before their value
466could be computed correctly, such as variables defined in packages
467that are loaded at dump time, but depend on the run-time information.
468For example, the value could be a file whose precise name depends on
469the hierarchy of files when Emacs runs, or a name of a program that
470needs to be searched at run time.
471
472The argument @var{symbol} is the symbol of the variable whose value
473you want to re-evaluate.
474
475A good place to put calls to this function is in the function
476@code{command-line} that is run during startup (@pxref{Startup Summary})
477or in the various hooks it calls.
478@end defun
479
455@node Customization Types 480@node Customization Types
456@section Customization Types 481@section Customization Types
457 482