aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-05-16 10:52:14 +0000
committerKim F. Storm2006-05-16 10:52:14 +0000
commite6966ef0a771f0afe79b22767b3a6ed81dadf252 (patch)
tree90acc26d50cdf5c9c6a655acde1ecc48e6d7993c
parent0027258d1ea714b2eebc3ad92770f954a072da8c (diff)
downloademacs-e6966ef0a771f0afe79b22767b3a6ed81dadf252.tar.gz
emacs-e6966ef0a771f0afe79b22767b3a6ed81dadf252.zip
(Minibuffer History): Update add-to-history.
-rw-r--r--lispref/minibuf.texi19
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
449history list symbol. The variable @code{history-delete-duplicates} 449history list symbol. The variable @code{history-delete-duplicates}
450specifies whether to delete duplicates in history. 450specifies 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
453This function adds a new element @var{newelt} to the history list 453This function adds a new element @var{newelt}, if non-empty, to the
454stored in the variable @var{history-var}, and returns the updated 454history list stored in the variable @var{history-var}, and returns the
455history list. By default, the list length is limited by the value 455updated history list. By default, the list length is limited by the
456specified by @code{history-length} (described below), but the optional 456value specified by @code{history-length} (described below), but the
457argument @var{maxelt} overrides that. The possible values of 457optional 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
461Duplicate members are removed from the history list, unless 461Duplicate 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
464If @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