unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9894: mouse-yank-primary does not set mark
@ 2011-10-28  4:15 Glenn Morris
  2011-10-28  6:56 ` Eli Zaretskii
  2011-10-29  6:09 ` Chong Yidong
  0 siblings, 2 replies; 4+ messages in thread
From: Glenn Morris @ 2011-10-28  4:15 UTC (permalink / raw)
  To: 9894

Package: emacs
Version: 24.0.90

emacs -Q

Using the mouse, hold down the left mouse button and drag to select the
text "buffer is for" in the scratch buffer.
Release left mouse button, move mouse towards the bottom of the window.
Press middle button to paste the previously selected text.
Press C-x C-x.
The cursor goes to the near the start of the buffer, just after "This".

Contrast with Emacs 23.3, where the cursor goes to the start of the text
that was just pasted. Perhaps the new behaviour is intentional?





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

* bug#9894: mouse-yank-primary does not set mark
  2011-10-28  4:15 bug#9894: mouse-yank-primary does not set mark Glenn Morris
@ 2011-10-28  6:56 ` Eli Zaretskii
  2011-10-28 12:52   ` Stefan Monnier
  2011-10-29  6:09 ` Chong Yidong
  1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2011-10-28  6:56 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 9894

> From: Glenn Morris <rgm@gnu.org>
> Date: Fri, 28 Oct 2011 00:15:33 -0400
> 
> Using the mouse, hold down the left mouse button and drag to select the
> text "buffer is for" in the scratch buffer.
> Release left mouse button, move mouse towards the bottom of the window.
> Press middle button to paste the previously selected text.
> Press C-x C-x.
> The cursor goes to the near the start of the buffer, just after "This".
> 
> Contrast with Emacs 23.3, where the cursor goes to the start of the text
> that was just pasted. Perhaps the new behaviour is intentional?

Mouse-2 is now bound to a different command than it was in Emacs 23.3,
as you well know.  Isn't this change part of the selection-related
changes in Emacs 24 that the different binding was part of?  Pasting
with mouse-2 doesn't go through the kill ring now.

FWIW, on MS-Windows, "C-x C-x" still goes to the start of the pasted
text, but that could be due to the fact that PRIMARY is emulated on
w32.





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

* bug#9894: mouse-yank-primary does not set mark
  2011-10-28  6:56 ` Eli Zaretskii
@ 2011-10-28 12:52   ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2011-10-28 12:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9894

>> Using the mouse, hold down the left mouse button and drag to select the
>> text "buffer is for" in the scratch buffer.
>> Release left mouse button, move mouse towards the bottom of the window.
>> Press middle button to paste the previously selected text.
>> Press C-x C-x.
>> The cursor goes to the near the start of the buffer, just after "This".
>> 
>> Contrast with Emacs 23.3, where the cursor goes to the start of the text
>> that was just pasted. Perhaps the new behaviour is intentional?

Yup that's a bug.

> Mouse-2 is now bound to a different command than it was in Emacs 23.3,
> as you well know.  Isn't this change part of the selection-related
> changes in Emacs 24 that the different binding was part of?  Pasting
> with mouse-2 doesn't go through the kill ring now.

Yes, it has changed, but that doesn't mean it shouldn't push a mark
like the old code did.


        Stefan





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

* bug#9894: mouse-yank-primary does not set mark
  2011-10-28  4:15 bug#9894: mouse-yank-primary does not set mark Glenn Morris
  2011-10-28  6:56 ` Eli Zaretskii
@ 2011-10-29  6:09 ` Chong Yidong
  1 sibling, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2011-10-29  6:09 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 9894

Glenn Morris <rgm@gnu.org> writes:

> Using the mouse, hold down the left mouse button and drag to select the
> text "buffer is for" in the scratch buffer.
> Release left mouse button, move mouse towards the bottom of the window.
> Press middle button to paste the previously selected text.
> Press C-x C-x.
> The cursor goes to the near the start of the buffer, just after "This".

Thanks, fixed.





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

end of thread, other threads:[~2011-10-29  6:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  4:15 bug#9894: mouse-yank-primary does not set mark Glenn Morris
2011-10-28  6:56 ` Eli Zaretskii
2011-10-28 12:52   ` Stefan Monnier
2011-10-29  6:09 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).