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: Thu, 14 Jul 2022 20:24:52 +0300 Organization: LINKOV.NET Message-ID: <867d4fa9p7.fsf@mail.linkov.net> References: <3c83c124-95a9-9dc6-a7a6-6e357c7574e4@orange.fr> <877d4hmjdh.fsf@gmail.com> <87lesxtivx.fsf@gnus.org> <87wnchl1fm.fsf@gmail.com> <86mtdcg6qr.fsf@mail.linkov.net> <87edyna9wy.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16647"; 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 , 56530@debbugs.gnu.org, Visuwesh To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 19:30:23 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 1oC2fP-0004DP-GX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 19:30:23 +0200 Original-Received: from localhost ([::1]:45208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC2fO-0003gm-BV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 13:30:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC2f5-0003fv-5S for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 13:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oC2f4-0007cG-SX for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 13:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oC2f4-0002Dn-Nx for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 17:30: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.16578197658457 (code B ref 56530); Thu, 14 Jul 2022 17:30:02 +0000 Original-Received: (at 56530) by debbugs.gnu.org; 14 Jul 2022 17:29:25 +0000 Original-Received: from localhost ([127.0.0.1]:38758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC2eS-0002CK-Ra for submit@debbugs.gnu.org; Thu, 14 Jul 2022 13:29:25 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:60395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC2eL-0002Bp-DH for 56530@debbugs.gnu.org; Thu, 14 Jul 2022 13:29:17 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E816A1C0002; Thu, 14 Jul 2022 17:29:09 +0000 (UTC) In-Reply-To: <87edyna9wy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 14 Jul 2022 19:20:13 +0200") 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:237017 Archived-At: >> 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? > > Shouldn't be too difficult, but it seems like different people have > different expectations of what should happen here, so I think having > separate minor modes (or some user options) is probably the way to go. There is already the minor mode: delete-selection-mode that is configured by symbol properties. Supporting a descriptive symbol name would allow to easily configure the desired behavior with just: (put 'mouse-yank-at-click 'delete-selection 'yank-on-region)