aboutsummaryrefslogtreecommitdiffstats
path: root/lispref/minibuf.texi
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2006-05-16 10:52:14 +0000
committerKim F. Storm <[email protected]>2006-05-16 10:52:14 +0000
commite6966ef0a771f0afe79b22767b3a6ed81dadf252 (patch)
tree90acc26d50cdf5c9c6a655acde1ecc48e6d7993c /lispref/minibuf.texi
parent0027258d1ea714b2eebc3ad92770f954a072da8c (diff)
(Minibuffer History): Update add-to-history.
Diffstat (limited to 'lispref/minibuf.texi')
-rw-r--r--lispref/minibuf.texi19
1 files changed, 11 insertions, 8 deletions
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi
index b5bcc3a77d..73cc0817d9 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
history list symbol. The variable @code{history-delete-duplicates}
specifies whether to delete duplicates in history.
-@defun add-to-history history-var newelt &optional maxelt
-This function adds a new element @var{newelt} to the history list
-stored in the variable @var{history-var}, and returns the updated
-history list. By default, the list length is limited by the value
-specified by @code{history-length} (described below), but the optional
-argument @var{maxelt} overrides that. The possible values of
+@defun add-to-history history-var newelt &optional maxelt keep-all
+This function adds a new element @var{newelt}, if non-empty, to the
+history list stored in the variable @var{history-var}, and returns the
+updated history list. By default, the list length is limited by the
+value specified by @code{history-length} (described below), but the
+optional argument @var{maxelt} overrides that. The possible values of
@var{maxelt} have the same meaning as the values of
@code{history-length}.
-Duplicate members are removed from the history list, unless
-@code{history-delete-duplicates} is @code{nil}.
+Duplicate members are removed from the history list, if
+@code{history-delete-duplicates} is non-@code{nil}.
+
+If @var{keep-all} is non-@code{nil}, even an empty or duplicate
+@var{newelt} element is added to the history list.
@end defun
@defvar history-length