From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ponce Newsgroups: gmane.emacs.bugs Subject: bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled Date: Wed, 13 Jul 2022 13:10:32 +0200 Message-ID: References: <3c83c124-95a9-9dc6-a7a6-6e357c7574e4@orange.fr> <877d4hmjdh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27612"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.0.2 Cc: 56530@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 13:12:54 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBaIX-00072z-RC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 13:12:53 +0200 Original-Received: from localhost ([::1]:34690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBaIW-0003LE-PW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 07:12:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBaGl-0002KI-P7 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 07:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBaGl-0003z2-FR for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 07:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBaGk-0005EJ-Ae for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 07:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2022 11:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56530 X-GNU-PR-Package: emacs Original-Received: via spool by 56530-submit@debbugs.gnu.org id=B56530.165771063720065 (code B ref 56530); Wed, 13 Jul 2022 11:11:02 +0000 Original-Received: (at 56530) by debbugs.gnu.org; 13 Jul 2022 11:10:37 +0000 Original-Received: from localhost ([127.0.0.1]:44608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBaGL-0005DY-05 for submit@debbugs.gnu.org; Wed, 13 Jul 2022 07:10:37 -0400 Original-Received: from smtp-21.smtpout.orange.fr ([80.12.242.21]:51604 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBaGI-0005DP-Ul for 56530@debbugs.gnu.org; Wed, 13 Jul 2022 07:10:35 -0400 Original-Received: from [192.168.1.15] ([90.112.17.208]) by smtp.orange.fr with ESMTPA id BaGGoeYowHubGBaGGoKc2f; Wed, 13 Jul 2022 13:10:33 +0200 X-ME-Helo: [192.168.1.15] X-ME-Auth: OWU0YmVhODllOThlNTBiMTcxZWVkMmNjZmQ4ZWZlMmRlNQ== X-ME-Date: Wed, 13 Jul 2022 13:10:33 +0200 X-ME-IP: 90.112.17.208 Content-Language: fr, en-US In-Reply-To: <877d4hmjdh.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236855 Archived-At: On 13/07/2022 11:50, Visuwesh wrote: > [Wednesday July 13, 2022] David Ponce wrote: > >> Hello, >> >> I noticed that now, when cua-mode is enabled, when I select a region >> (with mouse or keyboard), then use mouse-2 click on another point to >> insert the selected text, the active region is cut before to insert text >> at the mouse-2 click for the first time. As far as I remember this is a >> new behavior, and previously the selected region was not cut, but >> copied, like when cua-mode is disabled. >> >> The woraround is to first deselect the region before to click mouse-2 to >> insert the previously selected text. This way the initially selected >> text is not cut. >> >> Not sure this is expected, so this bug report ;-) > > It is expected. mouse-2 (and other mouse yank commands) were recently > changed to respect delete-selection-mode (which is enabled by cua-mode) > by yours truly. :-) > > You can disable the new behaviour by saying, > > (put 'mouse-yank-primary 'delete-selection nil) > (put 'mouse-yank-secondary 'delete-selection nil) > (put 'mouse-yank-at-click 'delete-selection nil) > > But I guess, it sure didn't take long for the complaints to come in Maybe the behavior could be disabled for cua-mode to be consistent with CUA expected behavior? After all, cua-mode is more than just delete-selection-mode ;-) Thanks [resent, forgot to CC the bug list]