diff options
| author | Juri Linkov | 2004-09-08 20:14:47 +0000 |
|---|---|---|
| committer | Juri Linkov | 2004-09-08 20:14:47 +0000 |
| commit | fbb2f03dc88a24097039253884d9809e227a761e (patch) | |
| tree | 563fa0a5ac31bf9ad56c2f6ca8d43e62ebc16278 | |
| parent | 0da4d471d931cc4454544fd64a18fcc6f1183a14 (diff) | |
| download | emacs-fbb2f03dc88a24097039253884d9809e227a761e.tar.gz emacs-fbb2f03dc88a24097039253884d9809e227a761e.zip | |
(Minibuffer History): Add `history-delete-duplicates'.
| -rw-r--r-- | lispref/minibuf.texi | 8 | ||||
| -rw-r--r-- | man/mini.texi | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi index 7b762a654e6..1b076c5837d 100644 --- a/lispref/minibuf.texi +++ b/lispref/minibuf.texi | |||
| @@ -450,7 +450,8 @@ delete old elements if the list gets too long. The variable | |||
| 450 | @code{history-length} specifies the maximum length for most history | 450 | @code{history-length} specifies the maximum length for most history |
| 451 | lists. To specify a different maximum length for a particular history | 451 | lists. To specify a different maximum length for a particular history |
| 452 | list, put the length in the @code{history-length} property of the | 452 | list, put the length in the @code{history-length} property of the |
| 453 | history list symbol. | 453 | history list symbol. The variable @code{history-delete-duplicates} |
| 454 | specifies whether to delete duplicates in history. | ||
| 454 | 455 | ||
| 455 | @defvar history-length | 456 | @defvar history-length |
| 456 | The value of this variable specifies the maximum length for all | 457 | The value of this variable specifies the maximum length for all |
| @@ -459,6 +460,11 @@ value is @code{t}, that means there no maximum (don't delete old | |||
| 459 | elements). | 460 | elements). |
| 460 | @end defvar | 461 | @end defvar |
| 461 | 462 | ||
| 463 | @defvar history-delete-duplicates | ||
| 464 | If the value of this variable is @code{t}, that means when adding a | ||
| 465 | new history element, all previous identical elements are deleted. | ||
| 466 | @end defvar | ||
| 467 | |||
| 462 | Here are some of the standard minibuffer history list variables: | 468 | Here are some of the standard minibuffer history list variables: |
| 463 | 469 | ||
| 464 | @defvar minibuffer-history | 470 | @defvar minibuffer-history |
diff --git a/man/mini.texi b/man/mini.texi index 040306ba041..ec82c6d4f88 100644 --- a/man/mini.texi +++ b/man/mini.texi | |||
| @@ -511,6 +511,12 @@ is deleted each time an element is added. If the value of | |||
| 511 | @code{history-length} is @code{t}, though, there is no maximum length | 511 | @code{history-length} is @code{t}, though, there is no maximum length |
| 512 | and elements are never deleted. | 512 | and elements are never deleted. |
| 513 | 513 | ||
| 514 | @vindex history-delete-duplicates | ||
| 515 | The variable @code{history-delete-duplicates} specifies whether to | ||
| 516 | delete duplicates in history. If the value of @code{history-delete-duplicates} | ||
| 517 | is @code{t}, that means when adding a new history element, all | ||
| 518 | previous identical elements are deleted. | ||
| 519 | |||
| 514 | @node Repetition | 520 | @node Repetition |
| 515 | @section Repeating Minibuffer Commands | 521 | @section Repeating Minibuffer Commands |
| 516 | @cindex command history | 522 | @cindex command history |