diff options
| author | Kim F. Storm | 2006-05-16 10:52:14 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-05-16 10:52:14 +0000 |
| commit | e6966ef0a771f0afe79b22767b3a6ed81dadf252 (patch) | |
| tree | 90acc26d50cdf5c9c6a655acde1ecc48e6d7993c | |
| parent | 0027258d1ea714b2eebc3ad92770f954a072da8c (diff) | |
| download | emacs-e6966ef0a771f0afe79b22767b3a6ed81dadf252.tar.gz emacs-e6966ef0a771f0afe79b22767b3a6ed81dadf252.zip | |
(Minibuffer History): Update add-to-history.
| -rw-r--r-- | lispref/minibuf.texi | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi index b5bcc3a77dc..73cc0817d9b 100644 --- a/lispref/minibuf.texi +++ b/lispref/minibuf.texi | |||
| @@ -449,17 +449,20 @@ list, put the length in the @code{history-length} property of the | |||
| 449 | history list symbol. The variable @code{history-delete-duplicates} | 449 | history list symbol. The variable @code{history-delete-duplicates} |
| 450 | specifies whether to delete duplicates in history. | 450 | specifies whether to delete duplicates in history. |
| 451 | 451 | ||
| 452 | @defun add-to-history history-var newelt &optional maxelt | 452 | @defun add-to-history history-var newelt &optional maxelt keep-all |
| 453 | This function adds a new element @var{newelt} to the history list | 453 | This function adds a new element @var{newelt}, if non-empty, to the |
| 454 | stored in the variable @var{history-var}, and returns the updated | 454 | history list stored in the variable @var{history-var}, and returns the |
| 455 | history list. By default, the list length is limited by the value | 455 | updated history list. By default, the list length is limited by the |
| 456 | specified by @code{history-length} (described below), but the optional | 456 | value specified by @code{history-length} (described below), but the |
| 457 | argument @var{maxelt} overrides that. The possible values of | 457 | optional argument @var{maxelt} overrides that. The possible values of |
| 458 | @var{maxelt} have the same meaning as the values of | 458 | @var{maxelt} have the same meaning as the values of |
| 459 | @code{history-length}. | 459 | @code{history-length}. |
| 460 | 460 | ||
| 461 | Duplicate members are removed from the history list, unless | 461 | Duplicate members are removed from the history list, if |
| 462 | @code{history-delete-duplicates} is @code{nil}. | 462 | @code{history-delete-duplicates} is non-@code{nil}. |
| 463 | |||
| 464 | If @var{keep-all} is non-@code{nil}, even an empty or duplicate | ||
| 465 | @var{newelt} element is added to the history list. | ||
| 463 | @end defun | 466 | @end defun |
| 464 | 467 | ||
| 465 | @defvar history-length | 468 | @defvar history-length |