[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: avoid duplicates in history

From: Juri Linkov
Subject: Re: avoid duplicates in history
Date: Sat, 05 Jun 2004 01:09:38 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Dan Nicolaescu <address@hidden> writes:
> Juri Linkov <address@hidden> writes:
>   > This condition is redundant when `history-delete-duplicates' is t.
> I believe this is fine, that condition just avoids adding consecutive
> identical entries, there's no need to do anything when that condition
> is false.

It can't delete duplicates if the history contains several of them.
This is possible when the value of `history-delete-duplicates' is
changed during the Emacs session.  But when it is set in .emacs, your
patch will guarantee that no duplicates are added to the history.  So
for the case when the value `history-delete-duplicates' isn't changed
during the Emacs session, your patch is ok.

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]