--- 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: history-delete-duplicates does not apply to command history |
Date: |
Tue, 14 Apr 2009 17:09:54 -0700 (PDT) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> >> > You probably want to open another bug saying that
> >> I'll just hopefully hereby reopen and retitle this one.
> >> > history-delete-duplicates does not apply to command history.
> >> (OK, but not sure you don't want two independent variables...)
> >> > You can try this (not even compile tested) patch:
> >> > --- callint.c.~1.172.~ Tue Mar 31 16:28:30 2009
> >> (Please test for me, I don't own a c-compiler here :-) )
>
> > The patch needed an extra declaration to compile, and it seems to work
fine.
>
> > I am not sure if it's acceptable to check in such a change at this point
> > in the release process.
>
> Yes, it's fine, thank you, please install it.
Done.
--- End Message ---