From: Leo <sdl.web@gmail.com>
To: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: kill-new may replace the wrong item
Date: Fri, 4 Jun 2010 00:31:36 +0100 [thread overview]
Message-ID: <AANLkTinxeI0wOlk18o9Fynv71vOziV8D8KVXjoNyZSof@mail.gmail.com> (raw)
In-Reply-To: <874ohjj4x2.fsf@mail.jurta.org>
On 3 June 2010 20:17, Juri Linkov <juri@jurta.org> wrote:
>> All I am trying to point out is there's something incorrect there.
>
> The whole implementation of `kill-do-not-save-duplicates' is incorrect.
> It should do nothing instead of setting `replace' to t and replacing the
> same string with itself (that may override the value pushed from
> `interprogram-paste' to `kill-ring').
>
> I believe this patch will provide the consistent interaction between
> `kill-do-not-save-duplicates' and `save-interprogram-paste-before-kill'.
> Before pushing a string to kill-ring it compares the head of kill-ring with
> the string from interprogram-paste and later with the input argument `string':
[patch]
Thanks for fixing this.
Leo
prev parent reply other threads:[~2010-06-03 23:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-31 21:32 kill-new may replace the wrong item Leo
2010-06-01 19:58 ` Juri Linkov
2010-06-02 3:10 ` Leo
2010-06-02 3:36 ` Leo
2010-06-02 19:53 ` Juri Linkov
2010-06-02 21:33 ` Leo
2010-06-03 19:17 ` Juri Linkov
2010-06-03 23:31 ` Leo [this message]
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=AANLkTinxeI0wOlk18o9Fynv71vOziV8D8KVXjoNyZSof@mail.gmail.com \
--to=sdl.web@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.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.