From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: avoid duplicates in history
Date: Sat, 05 Jun 2004 01:09:38 +0300 [thread overview]
Message-ID: <878yf3vuu4.fsf@mail.jurta.org> (raw)
In-Reply-To: <200406042127.i54LRGGK023448@scanner2.ics.uci.edu> (Dan Nicolaescu's message of "Fri, 04 Jun 2004 14:27:17 -0700")
Dan Nicolaescu <dann@ics.uci.edu> writes:
> Juri Linkov <juri@jurta.org> 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
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2004-06-04 22:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 17:00 avoid duplicates in history Dan Nicolaescu
2004-06-04 3:08 ` Juri Linkov
2004-06-04 3:20 ` Miles Bader
2004-06-04 16:29 ` Dan Nicolaescu
2004-06-04 19:32 ` Juri Linkov
2004-06-04 21:27 ` Dan Nicolaescu
2004-06-04 22:09 ` Juri Linkov [this message]
2004-06-05 22:50 ` Richard Stallman
2004-06-07 8:53 ` Stefan Monnier
2004-09-02 0:37 ` removing duplicate from history by default [was Re: avoid duplicates in history] Dan Nicolaescu
2004-09-02 19:02 ` Richard Stallman
2004-09-03 23:05 ` removing duplicate from history by default Juri Linkov
2004-09-05 17:58 ` Dan Nicolaescu
2004-09-07 3:43 ` Richard Stallman
2004-06-05 13:48 ` avoid duplicates in history Richard Stallman
2004-06-26 20:45 ` Juri Linkov
2004-06-28 2:23 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878yf3vuu4.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.