From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32747: 26; `C-M-w M-w' with non-nil `mouse-drag-copy-region', if selected with mouse Date: Sun, 16 Sep 2018 14:29:25 -0700 (PDT) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="__1537133366246987abhmp0011.oracle.com" X-Trace: blaine.gmane.org 1537133308 29389 195.159.176.226 (16 Sep 2018 21:28:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2018 21:28:28 +0000 (UTC) To: 32747@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 16 23:28:24 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1ead-0007Xs-Qt for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Sep 2018 23:28:24 +0200 Original-Received: from localhost ([::1]:60859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1eck-0005Vc-AQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Sep 2018 17:30:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1ecY-0005UL-4B for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:30:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1ecJ-0002Tt-TS for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:30:17 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g1ecG-00022m-A7 for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g1ecG-0005kf-1X for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Sep 2018 21:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153713339522056 (code B ref -1); Sun, 16 Sep 2018 21:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2018 21:29:55 +0000 Original-Received: from localhost ([127.0.0.1]:42417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1ec7-0005jg-4G for submit@debbugs.gnu.org; Sun, 16 Sep 2018 17:29:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1ec4-0005jO-Kt for submit@debbugs.gnu.org; Sun, 16 Sep 2018 17:29:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1ebx-00087H-Ty for submit@debbugs.gnu.org; Sun, 16 Sep 2018 17:29:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1ebw-0007y3-TZ for submit@debbugs.gnu.org; Sun, 16 Sep 2018 17:29:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1ebs-0005KG-MC for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:29:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1ebi-0006Ir-9Q for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:29:36 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:48008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1ebh-00060d-Fb for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2018 17:29:29 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8GLSfN5096665 for ; Sun, 16 Sep 2018 21:29:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type; s=corp-2018-07-02; bh=4Z1EZxwn5zjP192WXVcIIsw12nhHJ8M456yXetxshyo=; b=ZZBTTg+4yy7smn+czIP0Iz1fJ3CzpH9OPZLOfMs7Xqc2Q3fYFZ9Y4TMsp/32IlZeAHW/ SB6bBnedZi5njpO2FeCFGNbLcmX1nn67+N6iI03IwaIPQk6xGn7r7ixB+SDwJgxYSVN4 iibQud2VZwz/OwKT+uOhXwuo6CL69wLmAqfKOu/m9CIpMd/aolhEeGz/cjfuadDlqEZL 95oOR1RWhpKZ1ic4dn7RpAcl38ANYavnShM96/4z5+vLLZw3xYDCc549T1dvTb+jGyf2 ofyRWJ4EOSukHQKDg2Sv0Pg8Sik1UxXEEc47gHCDgw5TNHmLlJyVMSk2ylD4JP+n7pdr eA== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2mgtqqk4dy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 16 Sep 2018 21:29:27 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8GLTQbp010680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 16 Sep 2018 21:29:26 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8GLTQQ0028420 for ; Sun, 16 Sep 2018 21:29:26 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9018 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=861 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809160231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150356 Archived-At: --__1537133366246987abhmp0011.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable This is a regression that was apparently introduced in Emacs 24. Things work properly (as documented and as expected) in Emacs 23.4 and prior, but not in Emacs 24.5 or later. =20 1. emacs -Q 2. (setq mouse-drag-copy-region t) ; Mouse selection copies to kill-ring. 3. In *scratch*, select some text, e.g. "This buffer". 4. Use `M-w' to copy the selected text to the kill ring. 5. With the mouse, select some other text, e.g. "visit that file". 6. Use `C-M-w M-w', to append the second selection to the first as the last kill. The kill should thus be "This buffervisit that file". 7. `C-y' to yank the last kill. =20 The text yanked should be "This buffervisit that file". Instead, it is "visit that filevisit that file". That is, the second selection is added to the kill ring and appended to itself. =20 It makes no difference how the first selection (step #3) is made: with the mouse or not. It should also not make a difference how the second selection (#5) is made. And there certainly is no use case for doubling the text from the second selection (#5) for the yank. =20 In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor `Microsoft Corp.', version 10.0.16299 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' =20 --__1537133366246987abhmp0011.oracle.com Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable

This is = a regression that was apparently introduced in Emacs 24.  Things<= /o:p>

work properly (as documented and as expected)= in Emacs 23.4 and prior,

but not in Ema= cs 24.5 or later.

 

<= p class=3DMsoNormal>1. emacs -Q

2. (setq= mouse-drag-copy-region t) ; Mouse selection copies to kill-ring.

3. In *scratch*, select some text, e.g. "Thi= s buffer".

4. Use `M-w' to copy the= selected text to the kill ring.

5. With= the mouse, select some other text, e.g. "visit that file".<= /o:p>

6. Use `C-M-w M-w', to append the second sele= ction to the first as the

   l= ast kill.  The kill should thus be "This buffervisit that file&qu= ot;.

7. `C-y' to yank the last kill.

 

T= he text yanked should be "This buffervisit that file".  Inst= ead, it is

"visit that filevisit th= at file".  That is, the second selection is

added to the kill ring and appended to itself.

=

 

It makes no = difference how the first selection (step #3) is made: with

the mouse or not.  It should also not make a differ= ence how the second

selection (#5) is ma= de.  And there certainly is no use case for doubling

the text from the second selection (#5) for the yank.

 

I= n GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)

of 2018-05-30

Repository revisio= n: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea

Windowing system distributor `Microsoft Corp.', version 10.0.16299=

Configured using:

`configure --without-dbus --host=3Dx86_64-w64-mingw32<= /p>

--without-compress-install 'CFLAGS=3D-O2 -static -= g3''

 

<= /html> --__1537133366246987abhmp0011.oracle.com--