Subject: Re: bug#30466: 25.3; Eshell: Ignore all duplicates when ignoredups is non-nil

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 04 Feb 2021 11:56:14 +0100

Glenn Morris <[email-masked]> writes:

>> This does not prevent Eshell from cluttering the history with the same
>> commands as long as they are not consecutive (e.g. A, B, A, B...).
>>
>> I find more useful to always remove the duplicate entry back to the
>> first position.  It makes the history much lighter and much easier to
>> browse/filter.
>
> In terms of bash HISTCONTROL, this is the difference between
> "ignoredups" and "erasedups".
>
> Ref eg
> https://www.gnu.org/s/bash/manual/html_node/Bash-Variables.html#index-HISTCONTROL

Sounds useful to me, so I've now added this to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no