--- Begin Message ---
Subject: |
implement bash's ignoredups |
Date: |
Tue, 14 Apr 2009 08:00:17 +0800 |
M-p (translated from <escape> p) runs the command previous-history-element
Which gets rather frustrating when one runs into a long patch of the
same command, e.g.,
(compile "make" nil)
(compile "make" nil)
(compile "make" nil)
That's because emacs hasn't implement bash's ignoredups:
HISTCONTROL
...value of
ignoredups causes lines matching the previous history
entry to not be saved...A value of erasedups
causes all previous lines matching the current line to be
removed from the history list before that line is saved.
Note I'm not talking about the *shell* buffer, but instead
repeat-complex-command's previous-history-element etc.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#2989: implement bash's ignoredups |
Date: |
Mon, 13 Apr 2009 18:20:38 -0700 (PDT) |
jidanni@jidanni.org writes:
> M-p (translated from <escape> p) runs the command previous-history-element
>
> Which gets rather frustrating when one runs into a long patch of the
> same command, e.g.,
>
> (compile "make" nil)
> (compile "make" nil)
> (compile "make" nil)
>
> That's because emacs hasn't implement bash's ignoredups:
>
> HISTCONTROL
>
> ...value of
> ignoredups causes lines matching the previous history
> entry to not be saved...A value of erasedups
> causes all previous lines matching the current line to be
> removed from the history list before that line is saved.
>
> Note I'm not talking about the *shell* buffer, but instead
> repeat-complex-command's previous-history-element etc.
emacs/etc/NEWS.22
*** New user option `history-delete-duplicates'.
If set to t when adding a new history element, all previous identical
elements are deleted from the history list.
--- End Message ---