diff options
| author | Eli Zaretskii | 2008-10-19 12:02:48 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-10-19 12:02:48 +0000 |
| commit | 437706cd52ee83871580a9c07a84f91c944a1163 (patch) | |
| tree | da039ead694428c37efb3f53f55c3e5f7b8d2eaa | |
| parent | e6f174da18b24ad158102bf49aa6eb338afd3639 (diff) | |
| download | emacs-437706cd52ee83871580a9c07a84f91c944a1163.tar.gz emacs-437706cd52ee83871580a9c07a84f91c944a1163.zip | |
(Variable Definitions): Document custom-reevaluate-setting.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/customize.texi | 25 |
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 @@ | |||
| 1 | 2008-10-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * customize.texi (Variable Definitions): Document | ||
| 4 | custom-reevaluate-setting. | ||
| 5 | |||
| 1 | 2008-10-18 Martin Rudalics <rudalics@gmx.at> | 6 | 2008-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} | |||
| 302 | arranges to set the variable unconditionally, without testing whether | 302 | arranges to set the variable unconditionally, without testing whether |
| 303 | its value is void. (The same feature applies to @code{defvar}.) | 303 | its value is void. (The same feature applies to @code{defvar}.) |
| 304 | @xref{Defining Variables}. | 304 | @xref{Defining Variables}. |
| 305 | |||
| 306 | If 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 | ||
| 308 | variable at that time might not be correct, use | ||
| 309 | @code{custom-reevaluate-setting}, described below, to re-evaluate the | ||
| 310 | standard 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 | |||
| 452 | customization buffer. Both properties are actually lists whose car is | 458 | customization buffer. Both properties are actually lists whose car is |
| 453 | an expression which evaluates to the value. | 459 | an expression which evaluates to the value. |
| 454 | 460 | ||
| 461 | @defun custom-reevaluate-setting symbol | ||
| 462 | This function re-evaluates the standard value of a user-customizable | ||
| 463 | variable declared via @code{defcustom}. (If the variable was | ||
| 464 | customized, this function re-evaluates the saved value instead.) This | ||
| 465 | is useful for customizable options that are defined before their value | ||
| 466 | could be computed correctly, such as variables defined in packages | ||
| 467 | that are loaded at dump time, but depend on the run-time information. | ||
| 468 | For example, the value could be a file whose precise name depends on | ||
| 469 | the hierarchy of files when Emacs runs, or a name of a program that | ||
| 470 | needs to be searched at run time. | ||
| 471 | |||
| 472 | The argument @var{symbol} is the symbol of the variable whose value | ||
| 473 | you want to re-evaluate. | ||
| 474 | |||
| 475 | A good place to put calls to this function is in the function | ||
| 476 | @code{command-line} that is run during startup (@pxref{Startup Summary}) | ||
| 477 | or 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 | ||