From unknown Sat Aug 16 21:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42842: 27.0.91; indent-rigidly deactivates the mark with no visual cues Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Aug 2020 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42842 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42842@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159730675111889 (code B ref -1); Thu, 13 Aug 2020 08:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Aug 2020 08:19:11 +0000 Received: from localhost ([127.0.0.1]:46719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68S7-00035h-AX for submit@debbugs.gnu.org; Thu, 13 Aug 2020 04:19:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:57760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68S4-00035X-A6 for submit@debbugs.gnu.org; Thu, 13 Aug 2020 04:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k68S4-0005rx-4y for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2020 04:19:08 -0400 Received: from mailsec107.isp.belgacom.be ([195.238.20.103]:64006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k68S2-00075k-1W for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2020 04:19:07 -0400 IronPort-SDR: lw4vW8NDfz+vwRY48IO7Z1zUHTWXYJI8hyv39asLrRGOhl62NeGk2/DkSOYPkyKhig0ejlr+j5 +mb2poFQw+E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E7kajUvIrVKMgFvqK5BhVa0ocn6xaxFTem19EYkGEBLFJfeRKIk4jpNEvUIP/lFvq/hkqjkDJwyP/YJL3hGY/BLnbYkLfvZ7p97FRcyAUrwdBF+51UEq0BIO70WkLpr9PYExA5PxW7w+bhFdVxz50RWWeVDaCFK6PfqlCI5uQyI+WWY48Vojn9eLAZ4KvkkHB8llkAOKSs1JAMQH++A7JhOUrKT2Drh4InEGwNugMlBNbrg12LSzIbM3CoXqk87ys3IIerCI3OXJvrjqePmiChEcsFNSh9FlmQHCKwJM2/UPAWZXfKLw== X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CEAgDN9jRf/yq68VENUoEJB4RdgTOVMpQfiBgLAQEBAQEBAQEBCBsUBAEBhEgCIoIbJTgTAgMBAQEDAgUBAQYBAQEBAQEFBAGGDzmCQyKDGgR/GoEsCAKDIgGCXLFpdIE0hVKDUoFAgTiNKoFBP4E4DAOIIoUqBI9Ii1OaGHWCbJoQBQkBHqAVshGBaoF6MxoIKAiDJAlHJpckhURyNwIGCgEBAwmQfQEB X-IPAS-Result: A2CEAgDN9jRf/yq68VENUoEJB4RdgTOVMpQfiBgLAQEBAQEBAQEBCBsUBAEBhEgCIoIbJTgTAgMBAQEDAgUBAQYBAQEBAQEFBAGGDzmCQyKDGgR/GoEsCAKDIgGCXLFpdIE0hVKDUoFAgTiNKoFBP4E4DAOIIoUqBI9Ii1OaGHWCbJoQBQkBHqAVshGBaoF6MxoIKAiDJAlHJpckhURyNwIGCgEBAwmQfQEB Received: from 42.186-241-81.adsl-dyn.isp.belgacom.be (HELO [192.168.2.2]) ([81.241.186.42]) by relay.proximus.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Aug 2020 10:19:02 +0200 From: Nicolas Richard Message-ID: <02858033-a56b-e839-08fb-042e1f4e3b71@members.fsf.org> Date: Thu, 13 Aug 2020 10:19:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.10.0 MIME-Version: 1.0 Content-Type: text/html; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=195.238.20.103; envelope-from=nrichard@members.fsf.org; helo=mailsec107.isp.belgacom.be X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/13 04:19:02 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---)

C-x TAB deactivates the mark before running any other command.
I don't think it's appropriate :

if I use C-x TAB <right> <right>
then I can see the mark is still active (the region is highlighted).
but if I now use a command which uses the active region (e.g. M-% or TAB),
it doesn't act on the region anymore.

The reason is that `indent-rigidly' runs deactivate-mark before leaving
transient map:
(set-transient-map indent-rigidly-map t #'deactivate-mark)

It was introduced in 9ae89c2c99c (which fixes bug #20408).

My suggestion is to either revert 9ae89c2c99c or add a note in the
docstring, e.g :

> Typing any other key deactivates the transient mode. If
> transient-mark-mode is enabled, it also deactivates the mark. It can
> be reactivated using \\[exchange-point-and-mark]



In GNU Emacs 27.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version 2.24.30)
of 2020-07-07 built on user-ThinkPad-T400
Repository revision: 247dcb4b1b1b4ea3d50b63d41c4efa58743f610d
mRepository branch: emacs-27
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Trisquel GNU/Linux Flidas (8.0)
From unknown Sat Aug 16 21:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42842: 27.0.91; indent-rigidly deactivates the mark with no visual cues Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2020 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42842 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nicolas Richard Cc: 42842@debbugs.gnu.org Received: via spool by 42842-submit@debbugs.gnu.org id=B42842.160286367012524 (code B ref 42842); Fri, 16 Oct 2020 15:55:02 +0000 Received: (at 42842) by debbugs.gnu.org; 16 Oct 2020 15:54:30 +0000 Received: from localhost ([127.0.0.1]:60623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTS3p-0003Fw-MP for submit@debbugs.gnu.org; Fri, 16 Oct 2020 11:54:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTS3n-0003Ff-6p for 42842@debbugs.gnu.org; Fri, 16 Oct 2020 11:54:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=M0aAO0hXNyqZFnO0GuoMnt3CCo9rPnH+vct97jbKCIM=; b=rb1xdTA8i7a4AfnO9ySPPekJRS rDRAu7nm6kraB1+ixUFvH9mKi1S5/cWlUPCZNDR40gg7I3sOd/+Q9y7TyMop26LgofySD5QUIpvOo hiPMtJ0xRDfHpRzTQo+pltpNwcvrMbTiADUAK9iBZY99vBDjofErAosyFJtjjgbQfrQo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTS3d-0005QC-MV; Fri, 16 Oct 2020 17:54:20 +0200 From: Lars Ingebrigtsen References: <02858033-a56b-e839-08fb-042e1f4e3b71@members.fsf.org> X-Now-Playing: Thomas Mery's _Les couleurs, les ombres_: "Du sirop" Date: Fri, 16 Oct 2020 17:54:16 +0200 In-Reply-To: <02858033-a56b-e839-08fb-042e1f4e3b71@members.fsf.org> (Nicolas Richard's message of "Thu, 13 Aug 2020 10:19:00 +0200") Message-ID: <87mu0m2ml3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Nicolas Richard writes: > C-x TAB deactivates the mark before running any other command. > I don't think it's appropriate : > > if I use C-x TAB > then I can see the mark is still active (the region is highli [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Nicolas Richard writes: > C-x TAB deactivates the mark before running any other command. > I don't think it's appropriate : > > if I use C-x TAB > then I can see the mark is still active (the region is highlighted). > but if I now use a command which uses the active region (e.g. M-% or TAB), > it doesn't act on the region anymore. [...] > My suggestion is to either revert 9ae89c2c99c or add a note in the > docstring, e.g : > >> Typing any other key deactivates the transient mode. If >> transient-mark-mode is enabled, it also deactivates the mark. It can >> be reactivated using \\[exchange-point-and-mark] Thansk, I've now added something like this to the doc string in Emacs 28, but left the last line out -- it makes it sound like there's something special this command does, and exchange-point-and-mark always does this (when transient mark mode is in use). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 11:54:34 2020 Received: (at control) by debbugs.gnu.org; 16 Oct 2020 15:54:34 +0000 Received: from localhost ([127.0.0.1]:60626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTS3t-0003GC-U4 for submit@debbugs.gnu.org; Fri, 16 Oct 2020 11:54:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTS3s-0003Fo-Cm for control@debbugs.gnu.org; Fri, 16 Oct 2020 11:54:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HX9OFnT9L80Hwl5P0g3X5brmkb1CHTWUbf4WKeKnOHg=; b=P9cftwmpqVqtlZZoAFNGtyuU4/ dvvwQBegnkstxLxLUlWl8gWz7f8Q9fFor453rjnBZcfPtvupasb7OEldKlIG2nfS4I/IqmUKukiaR zdhdoW0XAGvvWCyJs2UB179MbApxhxStnSXZZrpLYxdoSbMezWRhYrvY0KM2WVhgjb7A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTS3k-0005Qg-LD for control@debbugs.gnu.org; Fri, 16 Oct 2020 17:54:26 +0200 Date: Fri, 16 Oct 2020 17:54:23 +0200 Message-Id: <87lfg62mkw.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42842 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 42842 fixed close 42842 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 42842 fixed close 42842 28.1 quit