all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Annoying kill-ring behavior
@ 2014-03-31 22:06 Smith_RS
  2014-03-31 22:45 ` Stefan Monnier
       [not found] ` <mailman.18630.1396305973.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Smith_RS @ 2014-03-31 22:06 UTC (permalink / raw
  To: help-gnu-emacs

This will be my last question for a while. It's been a persistent niggle for a long time. I was just wondering why this happens and what level of hackery is required to make it go away.

SCENARIO #1

- mouse-1-down, move mouse over text, mouse-1-up, verify kill-ring modified correctly
- re-position mouse pointer over desired yank location in another frame
- notice that frame is not raised, do a mouse-1-down, mouse-1-up to raise the frame and set point at desired yank location
- mouse-2-down, mouse-2-up, observe correct yank behavior

SCENARIO #2

- mouse-1-down, move mouse over text, mouse-1-up, verify kill-ring modified correctly
- re-position mouse pointer over desired yank location in another frame
- notice that frame is not raised, do a mouse-1-down, a very small mouse-drag of just a few pixels, mouse-1-up to raise the frame
- mouse-2-down, mouse-2-up, observe that nothing is yanked, because there is now a zero-length string at the top of the kill-ring

Can someone clue me in as to how I avoid SCENARIO #2?

I want to know how to prevent empty entries from getting into the kill-ring, or remove them after the fact. There is obviously a click-vs-drag pixel threshold being set somewhere, but I can't see where that's exposed so I can modify it.

And I don't really understand why zero-length strings are allowed in the kill-ring at all.

Thanks.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-04-04  7:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-31 22:06 Annoying kill-ring behavior Smith_RS
2014-03-31 22:45 ` Stefan Monnier
     [not found] ` <mailman.18630.1396305973.10748.help-gnu-emacs@gnu.org>
2014-04-01  7:54   ` Smith_RS
2014-04-01 16:23     ` Smith_RS
2014-04-02 11:59     ` Stefan Monnier
     [not found]     ` <mailman.18813.1396529475.10748.help-gnu-emacs@gnu.org>
2014-04-03 16:52       ` Smith_RS
2014-04-03 21:59         ` Smith_RS
2014-04-04  4:34           ` Joost Kremers
2014-04-04  7:00             ` Smith_RS

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.