all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: kill-new may replace the wrong item
Date: Wed, 02 Jun 2010 22:53:17 +0300	[thread overview]
Message-ID: <87y6exp5zi.fsf@mail.jurta.org> (raw)
In-Reply-To: <AANLkTinytk5kYPVRfTq9E96PEvX6unWdOIqQ36Zt6Ote@mail.gmail.com> (Leo's message of "Wed, 2 Jun 2010 04:36:34 +0100")

> When this happens duplicate entries will end up in the kill ring. The
> old CAR now get pushed down the kill-ring, and the NEW CAR, that was
> originally from the clipboard but get replaced with the 'STRING' arg.

Do you think `kill-do-not-save-duplicates' should take into account
clipboard strings too and don't allow duplicates from clipboard?
Maybe.  But should the same logic apply to the menu items of yank-menu?
Should `menu-bar-update-yank-menu' use the value of `(car kill-ring)'
that was *before* pushing clipboard into kill-ring, but the value of
`replace' that is *after* pushing clipboard into kill-ring and
comparing it with the new value of `(car kill-ring)'?

-- 
Juri Linkov
http://www.jurta.org/emacs/



  reply	other threads:[~2010-06-02 19:53 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 [this message]
2010-06-02 21:33         ` Leo
2010-06-03 19:17           ` Juri Linkov
2010-06-03 23:31             ` Leo

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=87y6exp5zi.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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.