[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/minibuf.texi
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/minibuf.texi |
Date: |
Wed, 17 May 2006 22:23:17 +0000 |
Index: emacs/lispref/minibuf.texi
diff -u emacs/lispref/minibuf.texi:1.81 emacs/lispref/minibuf.texi:1.82
--- emacs/lispref/minibuf.texi:1.81 Tue May 16 10:52:14 2006
+++ emacs/lispref/minibuf.texi Wed May 17 22:23:17 2006
@@ -450,19 +450,17 @@
specifies whether to delete duplicates in history.
@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
address@hidden have the same meaning as the values of
address@hidden
-
-Duplicate members are removed from the history list, if
address@hidden is address@hidden
-
-If @var{keep-all} is address@hidden, even an empty or duplicate
address@hidden element is added to the history list.
+This function adds a new element @var{newelt}, if it isn't the empty
+string, to the history list stored in the variable @var{history-var},
+and returns the updated history list. It limits the list length to
+the value of @var{maxelt} (if address@hidden) or @code{history-length}
+(described below). The possible values of @var{maxelt} have the same
+meaning as the values of @code{history-length}.
+
+Normally, @code{add-to-history} removes duplicate members from the
+history list if @code{history-delete-duplicates} is address@hidden
+However, if @var{keep-all} is address@hidden, that says not to remove
+duplicates, and to add @var{newelt} to the list even if it is empty.
@end defun
@defvar history-length