From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov 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 22:19:56 +0300 Organization: LINKOV.NET Message-ID: <86mtdcg6qr.fsf@mail.linkov.net> References: <3c83c124-95a9-9dc6-a7a6-6e357c7574e4@orange.fr> <877d4hmjdh.fsf@gmail.com> <87lesxtivx.fsf@gnus.org> <87wnchl1fm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19466"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: David Ponce , Lars Ingebrigtsen , 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 21:30:53 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 1oBi4S-0004vJ-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 21:30:52 +0200 Original-Received: from localhost ([::1]:34922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBi4R-0001B8-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 15:30:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBi3f-0000Yc-PD for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 15:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBi3f-0005SU-Fj for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 15:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBi3f-0005ic-7Z for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 15:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2022 19:30:03 +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.165774058121918 (code B ref 56530); Wed, 13 Jul 2022 19:30:03 +0000 Original-Received: (at 56530) by debbugs.gnu.org; 13 Jul 2022 19:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:47772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBi3J-0005hS-Bw for submit@debbugs.gnu.org; Wed, 13 Jul 2022 15:29:41 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:34265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBi3H-0005h0-9D for 56530@debbugs.gnu.org; Wed, 13 Jul 2022 15:29:39 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 4B4B4240002; Wed, 13 Jul 2022 19:29:32 +0000 (UTC) In-Reply-To: <87wnchl1fm.fsf@gmail.com> (Visuwesh's message of "Wed, 13 Jul 2022 16:33:25 +0530") 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:236928 Archived-At: >> That wasn't really the intention of the change, I think? It was so that >> if you paste text from a different program into a selected area in >> Emacs, then that area would be deleted first, or do I misremember? > > AFAICT, the recipe produces what I had in my mind when I proposed. The > behaviour might seems slightly odd since mouse-yank-at-point is set to > nil in OP's case. It shouldn't be hard to take this defcustom into > account tho. It should delete the region only when clicking on the selected region. Maybe it's possible to add a corresponding function for the 'delete-selection' property?