GNU bug report logs - #9894
mouse-yank-primary does not set mark

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Fri, 28 Oct 2011 04:18:02 UTC

Severity: normal

Found in version 24.0.90

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9894 in the body.
You can then email your comments to 9894 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9894; Package emacs. (Fri, 28 Oct 2011 04:18:02 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: mouse-yank-primary does not set mark
Date: Fri, 28 Oct 2011 00:15:33 -0400
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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9894; Package emacs. (Fri, 28 Oct 2011 06:59:01 GMT) Full text and rfc822 format available.

Message #6 received at 9894 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9894 <at> debbugs.gnu.org
Subject: Re: bug#9894: mouse-yank-primary does not set mark
Date: Fri, 28 Oct 2011 08:56:14 +0200
> From: Glenn Morris <rgm <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9894; Package emacs. (Fri, 28 Oct 2011 12:55:01 GMT) Full text and rfc822 format available.

Message #9 received at 9894 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9894 <at> debbugs.gnu.org
Subject: Re: bug#9894: mouse-yank-primary does not set mark
Date: Fri, 28 Oct 2011 08:52:48 -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?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9894; Package emacs. (Sat, 29 Oct 2011 06:12:02 GMT) Full text and rfc822 format available.

Message #12 received at 9894 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9894 <at> debbugs.gnu.org
Subject: Re: bug#9894: mouse-yank-primary does not set mark
Date: Sat, 29 Oct 2011 14:09:06 +0800
Glenn Morris <rgm <at> 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.




bug closed, send any further explanations to 9894 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 29 Oct 2011 06:12:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Nov 2011 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.