changeset 57017:9f99ae07c452

(Minibuffer History): Add `history-delete-duplicates'.
author Juri Linkov <juri@jurta.org>
date Wed, 08 Sep 2004 20:14:47 +0000
parents eda556d106c6
children 24845dc34c58
files lispref/minibuf.texi man/mini.texi
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/minibuf.texi	Wed Sep 08 20:06:13 2004 +0000
+++ b/lispref/minibuf.texi	Wed Sep 08 20:14:47 2004 +0000
@@ -450,7 +450,8 @@
 @code{history-length} specifies the maximum length for most history
 lists.  To specify a different maximum length for a particular history
 list, put the length in the @code{history-length} property of the
-history list symbol.
+history list symbol.  The variable @code{history-delete-duplicates}
+specifies whether to delete duplicates in history.
 
 @defvar history-length
 The value of this variable specifies the maximum length for all
@@ -459,6 +460,11 @@
 elements).
 @end defvar
 
+@defvar history-delete-duplicates
+If the value of this variable is @code{t}, that means when adding a
+new history element, all previous identical elements are deleted.
+@end defvar
+
   Here are some of the standard minibuffer history list variables:
 
 @defvar minibuffer-history
--- a/man/mini.texi	Wed Sep 08 20:06:13 2004 +0000
+++ b/man/mini.texi	Wed Sep 08 20:14:47 2004 +0000
@@ -511,6 +511,12 @@
 @code{history-length} is @code{t}, though, there is no maximum length
 and elements are never deleted.
 
+@vindex history-delete-duplicates
+  The variable @code{history-delete-duplicates} specifies whether to
+delete duplicates in history.  If the value of @code{history-delete-duplicates}
+is @code{t}, that means when adding a new history element, all
+previous identical elements are deleted.
+
 @node Repetition
 @section Repeating Minibuffer Commands
 @cindex command history