diff options
| author | Richard M. Stallman | 2006-12-24 16:36:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-12-24 16:36:26 +0000 |
| commit | d78b75dd4de4c40e1c2cb51906d971801ffd57e9 (patch) | |
| tree | d6a76502caedf3cde2d8d3291d4214d7403a1219 | |
| parent | ed1281ecb9a6f9450fd95ddb8bafb24dd279ea94 (diff) | |
| download | emacs-d78b75dd4de4c40e1c2cb51906d971801ffd57e9.tar.gz emacs-d78b75dd4de4c40e1c2cb51906d971801ffd57e9.zip | |
(Variable Definitions): Document new name custom-add-frequent-value.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/customize.texi | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 39975f4e9e9..1e93fe189e0 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-12-24 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * customize.texi (Variable Definitions): Document | ||
| 4 | new name custom-add-frequent-value. | ||
| 5 | |||
| 1 | 2006-12-19 Kim F. Storm <storm@cua.dk> | 6 | 2006-12-19 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * commands.texi (Misc Events): User signals now result in sigusr1 | 8 | * commands.texi (Misc Events): User signals now result in sigusr1 |
diff --git a/lispref/customize.texi b/lispref/customize.texi index 6d93d6fdb9b..ee188c76c79 100644 --- a/lispref/customize.texi +++ b/lispref/customize.texi | |||
| @@ -418,18 +418,18 @@ Keywords}. Here is an example, from the library @file{saveplace.el}: | |||
| 418 | If a customization item has a type such as @code{hook} or | 418 | If a customization item has a type such as @code{hook} or |
| 419 | @code{alist}, which supports @code{:options}, you can add additional | 419 | @code{alist}, which supports @code{:options}, you can add additional |
| 420 | values to the list from outside the @code{defcustom} declaration by | 420 | values to the list from outside the @code{defcustom} declaration by |
| 421 | calling @code{custom-add-option}. For example, if you define a | 421 | calling @code{custom-add-frequent-value}. For example, if you define a |
| 422 | function @code{my-lisp-mode-initialization} intended to be called from | 422 | function @code{my-lisp-mode-initialization} intended to be called from |
| 423 | @code{emacs-lisp-mode-hook}, you might want to add that to the list of | 423 | @code{emacs-lisp-mode-hook}, you might want to add that to the list of |
| 424 | reasonable values for @code{emacs-lisp-mode-hook}, but not by editing | 424 | reasonable values for @code{emacs-lisp-mode-hook}, but not by editing |
| 425 | its definition. You can do it thus: | 425 | its definition. You can do it thus: |
| 426 | 426 | ||
| 427 | @example | 427 | @example |
| 428 | (custom-add-option 'emacs-lisp-mode-hook | 428 | (custom-add-frequent-value 'emacs-lisp-mode-hook |
| 429 | 'my-lisp-mode-initialization) | 429 | 'my-lisp-mode-initialization) |
| 430 | @end example | 430 | @end example |
| 431 | 431 | ||
| 432 | @defun custom-add-option symbol value | 432 | @defun custom-add-frequent-value symbol value |
| 433 | For the customization option @var{symbol}, add @var{value} to the | 433 | For the customization option @var{symbol}, add @var{value} to the |
| 434 | list of reasonable values. | 434 | list of reasonable values. |
| 435 | 435 | ||