From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2018 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 32956@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: charles@aurox.ch Received: via spool by submit@debbugs.gnu.org id=B.153883539916655 (code B ref -1); Sat, 06 Oct 2018 14:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Oct 2018 14:16:39 +0000 Received: from localhost ([127.0.0.1]:38721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nNn-0004KZ-Jg for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:16:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nNl-0004KN-R0 for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8nNf-0005Rj-Ou for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:16:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g8nNf-0005QD-L2 for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:16:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8nNe-0007tU-G1 for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:16:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8nNZ-0005FH-Gr for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:16:30 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:35684) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g8nNU-0004z8-NX for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:16:21 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 2CEA42288A for ; Sat, 6 Oct 2018 14:20:13 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= reply-to:subject:subject:to:from:from:message-id:date:date; s= dkim; t=1538835609; x=1539699610; bh=IrWa8TSg/AUdBbliUYosUnUM5Hd VeSm98IBDZ3DC9Hk=; b=HtaZgbjO+hxu2/UT5v++9U1h6QjNybXDNgNkRtMM8HH gpRv+Slb/tAnXWTBKnQj7C3SdP8vUBUVioT9t95gNV9RHAiwz5oQaUITMeKx8r89 9javt3DmFTgghe7BQ2/01Xppci7yDMPdDX2OAlehW/arnRkWxlWSlYUOov91PBvs = X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id O8H6MyXzj0eG for ; Sat, 6 Oct 2018 14:20:09 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 2B99C226F4 for ; Sat, 6 Oct 2018 14:20:09 +0000 (UTC) Date: Sat, 06 Oct 2018 16:19:55 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -6.0 (------) t-m-m's documentation currently states: The mark is "deactivated" by changing the buffer, and after certain other operations that set the mark but whose main purpose is something else--for example, incremental search, M-<, and M->. All of the examples (incremental search, M-<, and M->) do not always deactivate the mark. For example, for incremental search, try from emacs -Q: M-< C-SPC C-s buffer RET > the mark is not deactivated For M-< and M->, try: M-< M-@ M- > neither M-< nor M-> deactivate the mark There does seem to be at least one case where M-< and M-> do deactivate the mark. Try: double-clicking the word "buffer" in *scratch* M- Both M-< and M-> deactivate the mark in this case. IIUC, this behavior is explained in (info "(emacs) Shift Selection"): A mark set via mouse commands behaves the same as a mark set via shift-selection (*note Setting Mark::). For example, if you specify a region by dragging the mouse, you can continue to extend the region using shifted cursor motion commands. In either case, any unshifted cursor motion command deactivates the mark. In light of this, here's a change for review on emacs-26: diff --git a/lisp/simple.el b/lisp/simple.el index d5674aa..8bbafe4 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -5793,10 +5793,10 @@ transient-mark-mode Transient Mark mode is a global minor mode. When enabled, the region is highlighted with the `region' face whenever the mark -is active. The mark is \"deactivated\" by changing the buffer, -and after certain other operations that set the mark but whose -main purpose is something else--for example, incremental search, -\\[beginning-of-buffer], and \\[end-of-buffer]. +is active. The mark is \"deactivated\" after certain non-motion +commands, including those that change the text in the buffer, and +during shift or mouse selection by any unshifted cursor motion +command (see Info node `Shift Selection' for more details). You can also deactivate the mark by typing \\[keyboard-quit] or \\[keyboard-escape-quit]. From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2018 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: charles@aurox.ch, 32956@debbugs.gnu.org Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153883730519553 (code B ref 32956); Sat, 06 Oct 2018 14:49:02 +0000 Received: (at 32956) by debbugs.gnu.org; 6 Oct 2018 14:48:25 +0000 Received: from localhost ([127.0.0.1]:38739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nsW-00055I-MZ for submit@debbugs.gnu.org; Sat, 06 Oct 2018 10:48:24 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:55914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nsU-000555-NA for 32956@debbugs.gnu.org; Sat, 06 Oct 2018 10:48:23 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w96EjD0R007191; Sat, 6 Oct 2018 14:48:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=cOZXOOWK315dDoeYSU2pW3Kauv3IKmStxZXHAcTo3wI=; b=2mqOchhECu1MzUijeMtVkDmfqaA2eyCxMFInIT4C3ISCNBRx89wROQMFkSjnz+Cnzfd+ 3Q6RtYkxDxOvlH0d/0XS+gScux7RzY5yxxEMFKnqsfMmkCQoqEd8v3jS+nRaevkSURqU CmrpxkOHlpjH8CFqgTAlXbbcumEklGQ3kNLXI4PQrldD5SuTcmNLOXrgYQ5CS6V5Puqh X0g14ctXn/fmFG7lBaT4vj2YeuyK1OZkVCOjEtIIOChJ2DebqtPtVDPambgK5yHGqpfe XNUQJlLIF/5E++HDzVOeLS5roK4WK+sBCRTSf0OHfw24SzuJcnkoZ8wJvGJKljvU9KCD xQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mxn0ph1xq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 06 Oct 2018 14:48:08 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w96Em2kK029991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 6 Oct 2018 14:48:02 GMT Received: from ubhmp0012.oracle.com (ubhmp0012.oracle.com [156.151.24.65]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w96Em2E0017944; Sat, 6 Oct 2018 14:48:02 GMT MIME-Version: 1.0 Message-ID: <5399d374-2089-492a-b830-9eb2baac82a6@default> Date: Sat, 6 Oct 2018 14:48:01 +0000 (UTC) From: Drew Adams References: <> In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9037 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810060150 X-Spam-Score: -2.3 (--) 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.3 (---) > Transient Mark mode is a global minor mode. When enabled, the > region is highlighted with the `region' face whenever the mark > -is active. The mark is \"deactivated\" by changing the buffer, > -and after certain other operations that set the mark but whose > -main purpose is something else--for example, incremental search, > -\\[beginning-of-buffer], and \\[end-of-buffer]. > +is active. The mark is \"deactivated\" after certain non-motion > +commands, including those that change the text in the buffer, and > +during shift or mouse selection by any unshifted cursor motion > +command (see Info node `Shift Selection' for more details). >=20 > You can also deactivate the mark by typing \\[keyboard-quit] or > \\[keyboard-escape-quit]. The Elisp manual, node `The Mark' has similar text, so if an update to the doc string is called for then maybe the manual text needs a similar update. ____ BTW, this (the manual) might be a good place to mention to Elisp users that (in `transient-mark-mode', at least) the mark is also deactivated by default after each command, by the command loop. Some commands inhibit this automatic deactivation. This is a fairly common question by Elisp users who try to write a command that they think/hope will end with the region staying activated (e.g. for use by a follow-up command). This is maybe a good place to tell them about the automatic deactivation (by default), and maybe even let them know that they can use (setq deactivate-mark nil) at the end of a command definition to inhibit automatic deactivation. In fact, this bit of `The Mark' doesn't seem quite right: A command can ... request deactivation of the mark upon return to the editor command loop by setting the variable 'deactivate-mark' to a non-'nil' value. I think that's a bit backward, at least in `transient-mark-mode'. IIUC, the command loop automatically deactivates the mark after each command, unless `deactivate-mark' is non-nil. A command (in t-m-m, at least) need not set that variable to non-nil to deactivate the mark, as it is normally treated as such. The opposite is true: If you want the region to stay active after your command is done (so that it is active for the next command) then your command can set `deactivate-mark' to nil to prevent automatic deactivation. From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2018 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: charles@aurox.ch Cc: 32956@debbugs.gnu.org Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153884402929867 (code B ref 32956); Sat, 06 Oct 2018 16:41:02 +0000 Received: (at 32956) by debbugs.gnu.org; 6 Oct 2018 16:40:29 +0000 Received: from localhost ([127.0.0.1]:38787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8pcy-0007lf-M1 for submit@debbugs.gnu.org; Sat, 06 Oct 2018 12:40:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8pcx-0007lR-Fw for 32956@debbugs.gnu.org; Sat, 06 Oct 2018 12:40:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8pcn-0006ql-BU for 32956@debbugs.gnu.org; Sat, 06 Oct 2018 12:40:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8pcl-0006oO-Eq; Sat, 06 Oct 2018 12:40:16 -0400 Received: from [176.228.60.248] (port=3075 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g8pcg-00057Q-Ai; Sat, 06 Oct 2018 12:40:12 -0400 Date: Sat, 06 Oct 2018 19:39:57 +0300 Message-Id: <83d0sn112a.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (charles@aurox.ch) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.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: -6.0 (------) > Date: Sat, 06 Oct 2018 16:19:55 +0200 > From: charles@aurox.ch (Charles A. Roelli) > > In light of this, here's a change for review on emacs-26: > > diff --git a/lisp/simple.el b/lisp/simple.el > index d5674aa..8bbafe4 100644 > --- a/lisp/simple.el > +++ b/lisp/simple.el > @@ -5793,10 +5793,10 @@ transient-mark-mode > > Transient Mark mode is a global minor mode. When enabled, the > region is highlighted with the `region' face whenever the mark > -is active. The mark is \"deactivated\" by changing the buffer, > -and after certain other operations that set the mark but whose > -main purpose is something else--for example, incremental search, > -\\[beginning-of-buffer], and \\[end-of-buffer]. > +is active. The mark is \"deactivated\" after certain non-motion > +commands, including those that change the text in the buffer, and > +during shift or mouse selection by any unshifted cursor motion > +command (see Info node `Shift Selection' for more details). > > You can also deactivate the mark by typing \\[keyboard-quit] or > \\[keyboard-escape-quit]. Fine with me (but do please make similar changes in the ELisp manual). From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2018 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 32956@debbugs.gnu.org Reply-To: charles@aurox.ch Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153885394812876 (code B ref 32956); Sat, 06 Oct 2018 19:26:02 +0000 Received: (at 32956) by debbugs.gnu.org; 6 Oct 2018 19:25:48 +0000 Received: from localhost ([127.0.0.1]:38848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8sCx-0003Lb-Sv for submit@debbugs.gnu.org; Sat, 06 Oct 2018 15:25:48 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:58180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8sCw-0003LM-39 for 32956@debbugs.gnu.org; Sat, 06 Oct 2018 15:25:46 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 902A12288E for <32956@debbugs.gnu.org>; Sat, 6 Oct 2018 19:29:42 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1538854181; x=1539718182; bh=Ul TPCOXv5m7O5axNZcXMdKoik6CEv9G3NpHLMjItY+o=; b=DrUP6peKbJN6LjHYLd NPXgkMxuLBU/RJxJ9PLvWTvRgK7bX699T21JNGWeMsPsawRDAck7EEZwHYn5lcuZ 1ei4DlBu/TWA80UUeAK2+6S19SLgjZpiZAZARWtPnIVh4dbfB3lhjeQBaeNOnC/J stlC2DZgMTEFOsOs5VAMBD6J0= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RrU-WdwqJodl for <32956@debbugs.gnu.org>; Sat, 6 Oct 2018 19:29:41 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 8190E226F4; Sat, 6 Oct 2018 19:29:41 +0000 (UTC) Date: Sat, 06 Oct 2018 21:29:15 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: <83d0sn112a.fsf@gnu.org> (message from Eli Zaretskii on Sat, 06 Oct 2018 19:39:57 +0300) References: <83d0sn112a.fsf@gnu.org> X-Spam-Score: -2.3 (--) 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.3 (---) tags 32956 fixed close 32956 26.2 quit > Date: Sat, 06 Oct 2018 19:39:57 +0300 > From: Eli Zaretskii > > Fine with me (but do please make similar changes in the ELisp manual). Ok, I've pushed the fix. The manual does not have the same error, so I've left it as is. From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2018 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 32956@debbugs.gnu.org Reply-To: charles@aurox.ch Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153885486614269 (code B ref 32956); Sat, 06 Oct 2018 19:42:02 +0000 Received: (at 32956) by debbugs.gnu.org; 6 Oct 2018 19:41:06 +0000 Received: from localhost ([127.0.0.1]:38853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8sRm-0003i5-8J for submit@debbugs.gnu.org; Sat, 06 Oct 2018 15:41:06 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:58218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8sRk-0003hT-HK for 32956@debbugs.gnu.org; Sat, 06 Oct 2018 15:41:05 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 7AFDE2288E for <32956@debbugs.gnu.org>; Sat, 6 Oct 2018 19:45:01 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1538855100; x=1539719101; bh=7Y NuNFwgWipBGIuuPGJRGWbGwzGUlbqvn2UAKDwVryo=; b=Pbu3eo66ZiSPt2tUFj r2kTlAtlWQ6FkQwsfl28pbkkVv2wAw2cUK/Lwdzja4hWn4Hz7M95ZmTXyXOs/ykk LJg8/FM1I34o2dvms17cFGx4/LhJ6unUIQMAqQTX2k7rKe8OjQh1+yy9yA6bTCde klLu765+7CJTi59DRhm7dxaOQ= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pSrsGIfLcWvM for <32956@debbugs.gnu.org>; Sat, 6 Oct 2018 19:45:00 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 4C82B226F4; Sat, 6 Oct 2018 19:45:00 +0000 (UTC) Date: Sat, 06 Oct 2018 21:44:46 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: <5399d374-2089-492a-b830-9eb2baac82a6@default> (message from Drew Adams on Sat, 6 Oct 2018 14:48:01 +0000 (UTC)) References: <> <5399d374-2089-492a-b830-9eb2baac82a6@default> X-Spam-Score: -2.3 (--) 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.3 (---) > Date: Sat, 6 Oct 2018 14:48:01 +0000 (UTC) > From: Drew Adams > Content-Type: text/plain; charset=us-ascii > > The Elisp manual, node `The Mark' has similar text, so if > an update to the doc string is called for then maybe the > manual text needs a similar update. The manual looks correct to me. I think in this case the manual has been updated without an equivalent change to the docstring of t-m-m. > BTW, this (the manual) might be a good place to mention > to Elisp users that (in `transient-mark-mode', at least) the > mark is also deactivated by default after each command, > by the command loop. Some commands inhibit this > automatic deactivation. > > This is a fairly common question by Elisp users who try to > write a command that they think/hope will end with the > region staying activated (e.g. for use by a follow-up command). > > This is maybe a good place to tell them about the automatic > deactivation (by default), and maybe even let them know > that they can use (setq deactivate-mark nil) at the end of a > command definition to inhibit automatic deactivation. Hmm, deactivate-mark is nil by default -- what effect would setting it to "nil" again have? Is it to counteract the effect of previous function calls within the command, which may have set "deactivate-mark" to "t"? > In fact, this bit of `The Mark' doesn't seem quite right: > > A command can ... request deactivation of the mark upon > return to the editor command loop by setting the variable > 'deactivate-mark' to a non-'nil' value. > > I think that's a bit backward, at least in `transient-mark-mode'. > IIUC, the command loop automatically deactivates the mark > after each command, unless `deactivate-mark' is non-nil. Again, though, deactivate-mark is "nil" by default, so it seems that some editing function has to set it to "t" for the mark to really be deactivated. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 06 15:41:36 2018 Received: (at control) by debbugs.gnu.org; 6 Oct 2018 19:41:36 +0000 Received: from localhost ([127.0.0.1]:38856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8sSG-0003in-H7 for submit@debbugs.gnu.org; Sat, 06 Oct 2018 15:41:36 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:58222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8sSF-0003ic-F3 for control@debbugs.gnu.org; Sat, 06 Oct 2018 15:41:35 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 9257F2288A for ; Sat, 6 Oct 2018 19:45:32 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= reply-to:subject:subject:to:from:from:message-id:date:date; s= dkim; t=1538855132; x=1539719133; bh=zJuxNWGyRdNzHM4HLui4+nSEAQ9 m8uqOl+SWj2DQxr0=; b=XyfAQ83Yz5tBduIcIaJedXGhBE6bGcMkSF4CVEeSKvL g7a6yl+ZRBJ51nkxJOk9kb+3w2L1xJPb3aCKaTkusKX/snMzQVvMgCgAmTXDC3xy dNgNc4+ZOWem8YS8geUtyg+NNno3ifIZMOrWJ3rc7wmFxDfdC3fgL17T5yzRPFzc = X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Sl8B7q-DJRqA for ; Sat, 6 Oct 2018 19:45:32 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 31295226F4 for ; Sat, 6 Oct 2018 19:45:32 +0000 (UTC) Date: Sat, 06 Oct 2018 21:45:17 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) To: control@debbugs.gnu.org Subject: control X-Spam-Score: -1.6 (-) 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: , Reply-To: charles@aurox.ch Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) tags 32956 fixed close 32956 26.2 quit From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Oct 2018 01:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: charles@aurox.ch, Drew Adams Cc: 32956@debbugs.gnu.org Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153887416218516 (code B ref 32956); Sun, 07 Oct 2018 01:03:02 +0000 Received: (at 32956) by debbugs.gnu.org; 7 Oct 2018 01:02:42 +0000 Received: from localhost ([127.0.0.1]:38944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8xT0-0004oZ-9r for submit@debbugs.gnu.org; Sat, 06 Oct 2018 21:02:42 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:46054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8xSx-0004oL-Rx for 32956@debbugs.gnu.org; Sat, 06 Oct 2018 21:02:40 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w970xAWa180430; Sun, 7 Oct 2018 01:02:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=P9JIwZv4xOZwlsLTxk2gwy8/KD2oxhuA+3eUUTvdLWs=; b=hD2QNo67dw/L/0dkL804jkOJ3GQzCWpC79pusnt2UB5X6qlK8D4oN/hDirbG1fnSaYFM TzlZskIIiq/p3ZjLrMWNIXr1q5KjfGHwJbpsEHCgCVnbUyNbPWWIw9BuvyXrKLVYf/tB OXYw19ouOYfoMOJqiaqd2G8vp3dqQ2FxuaNklffz0j8xJfRskSvdLRORc6FOoRjFITDJ OhiPG8O4tvkWkTRqcmOlEzqYJChxGXoNv06dn2YziqVGiK3VjVo/1f0hduDk21iNb4jx wXDvziz1M78xmd95D9Yn8gNi9MSvP3IIn3OM4MHeELRCKjkS3CzmYrh4U0lFFEynlqNw nQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2mxn0phr84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 07 Oct 2018 01:02:31 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9712UIh021403 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 7 Oct 2018 01:02:30 GMT Received: from ubhmp0017.oracle.com (ubhmp0017.oracle.com [156.151.24.70]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9712T8e012144; Sun, 7 Oct 2018 01:02:29 GMT MIME-Version: 1.0 Message-ID: <8e713508-f360-4fcd-9288-e094d450683a@default> Date: Sun, 7 Oct 2018 01:02:28 +0000 (UTC) From: Drew Adams References: <<>> <<5399d374-2089-492a-b830-9eb2baac82a6@default>> <> In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9038 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810070009 X-Spam-Score: -2.3 (--) 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.3 (---) > > BTW, this (the manual) might be a good place to mention > > to Elisp users that (in `transient-mark-mode', at least) the > > mark is also deactivated by default after each command, > > by the command loop. Some commands inhibit this > > automatic deactivation. > > > > This is a fairly common question by Elisp users who try to > > write a command that they think/hope will end with the > > region staying activated (e.g. for use by a follow-up command). > > > > This is maybe a good place to tell them about the automatic > > deactivation (by default), and maybe even let them know > > that they can use (setq deactivate-mark nil) at the end of a > > command definition to inhibit automatic deactivation. >=20 > Hmm, deactivate-mark is nil by default -- what effect would setting it > to "nil" again have? Is it to counteract the effect of previous > function calls within the command, which may have set > "deactivate-mark" to "t"? This is about defining a command that activates the region and wants to leave/keep it activated after the command is finished. Consider, as one example, a repeatable command that does something with the active region (e.g. indents it). Because it is repeatable it wants to keep the region=20 activated, for the next action. It needs to do this at the end: (setq deactivate-mark nil). Users sometimes try to define commands that try to leave the region active, not realizing that the command loop will deactivate the region when the command is done - unless the command sets `deactivate-mark' to nil. > > In fact, this bit of `The Mark' doesn't seem quite right: > > > > A command can ... request deactivation of the mark upon > > return to the editor command loop by setting the variable > > 'deactivate-mark' to a non-'nil' value. > > > > I think that's a bit backward, at least in `transient-mark-mode'. > > IIUC, the command loop automatically deactivates the mark > > after each command, unless `deactivate-mark' is non-nil. >=20 > Again, though, deactivate-mark is "nil" by default, so it seems that > some editing function has to set it to "t" for the mark to really be > deactivated. I don't understand what you mean by "really be deactivated". But see above. From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Oct 2018 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Drew Adams Cc: 32956@debbugs.gnu.org, drew.adams@oracle.com Reply-To: charles@aurox.ch Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153892297419122 (code B ref 32956); Sun, 07 Oct 2018 14:37:02 +0000 Received: (at 32956) by debbugs.gnu.org; 7 Oct 2018 14:36:14 +0000 Received: from localhost ([127.0.0.1]:39507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9AAI-0004yM-AI for submit@debbugs.gnu.org; Sun, 07 Oct 2018 10:36:14 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:58867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9AAF-0004y7-PQ for 32956@debbugs.gnu.org; Sun, 07 Oct 2018 10:36:12 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id F256322892 for <32956@debbugs.gnu.org>; Sun, 7 Oct 2018 14:40:08 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1538923158; x=1539787159; bh=yQ R68+K3+BFLRCyvsBMRql3lSqJAdwJ/MqMtbejXi8c=; b=ZmK2d5El4BB1pD+qp2 IkMTmKgKYssRpIGzEO7IzqBilmqyuIBKQD4WmtJnClbhAUCCUYEqWsdA5jd28vVS C/9cTJd2IV2Xepj8P4LTzjpFvOY3507t9IYgD5vVk5PcHhpxIARv4dWUrwvmrEgV Us9iS6cW0uPh5J5x11PXvTvSE= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oDBICszoknxm for <32956@debbugs.gnu.org>; Sun, 7 Oct 2018 14:39:18 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 36014226F4; Sun, 7 Oct 2018 14:39:18 +0000 (UTC) Date: Sun, 07 Oct 2018 16:39:07 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: <8e713508-f360-4fcd-9288-e094d450683a@default> (message from Drew Adams on Sun, 7 Oct 2018 01:02:28 +0000 (UTC)) References: <<>> <<5399d374-2089-492a-b830-9eb2baac82a6@default>> <> <8e713508-f360-4fcd-9288-e094d450683a@default> X-Spam-Score: -2.3 (--) 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.3 (---) > Date: Sun, 7 Oct 2018 01:02:28 +0000 (UTC) > From: Drew Adams > > > Hmm, deactivate-mark is nil by default -- what effect would setting it > > to "nil" again have? Is it to counteract the effect of previous > > function calls within the command, which may have set > > "deactivate-mark" to "t"? > > This is about defining a command that activates the region > and wants to leave/keep it activated after the command > is finished. > > Consider, as one example, a repeatable command that > does something with the active region (e.g. indents it). > Because it is repeatable it wants to keep the region > activated, for the next action. It needs to do this at > the end: (setq deactivate-mark nil). I think changing or adding text in the buffer is what eventually tells the command loop to deactivate the mark (via the variable deactivate-mark). The command loop should not do that by default after each command. For example, from emacs -Q: M-: (defun foo () (interactive)) RET C-x h M-x foo RET > does NOT deactivate the mark M-: (defun foo () (interactive) (insert "text")) RET C-x h M-x foo RET > DOES deactivate the mark So, developers should only have to add (setq deactivate-mark nil) to the end of their command if it is a command that changes or adds buffer text without wanting to deactivate the mark. This is explained in the Elisp manual (where it belongs, I think). But the Emacs manual does lack an index entry for "deactivating the mark", which seems like an area for improvement. From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Oct 2018 19:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: charles@aurox.ch Cc: 32956@debbugs.gnu.org, drew.adams@oracle.com Reply-To: charles@aurox.ch Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153894111730683 (code B ref 32956); Sun, 07 Oct 2018 19:39:01 +0000 Received: (at 32956) by debbugs.gnu.org; 7 Oct 2018 19:38:37 +0000 Received: from localhost ([127.0.0.1]:39646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9Esv-0007yp-4A for submit@debbugs.gnu.org; Sun, 07 Oct 2018 15:38:37 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:59047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9Ess-0007ya-Tw for 32956@debbugs.gnu.org; Sun, 07 Oct 2018 15:38:35 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 5915122889 for <32956@debbugs.gnu.org>; Sun, 7 Oct 2018 19:42:31 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1538941350; x=1539805351; bh=GY a9yx49xyqoaNKhVYQcG3VVPfyMOg/owrazTtt3spk=; b=qpXSV5GLKIkFFFW5WK jE3wg6oXyBPmrGfUajCjPLAUWY7Gx7mxQUKKqt0F2MHLNgIfN0YkGl0mMiyv5gP6 l3wuUm08egRSluMx+eCdoEKGA3Ir93vRiTTc/ZlfN42FcJv5VhdZBOhcmJ3gs/qI JBDUAStzOa63DBjxc/JZStdtk= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7FXAdipci6h4 for <32956@debbugs.gnu.org>; Sun, 7 Oct 2018 19:42:30 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 06C77226F4; Sun, 7 Oct 2018 19:42:29 +0000 (UTC) Date: Sun, 07 Oct 2018 21:42:07 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: (charles@aurox.ch) References: <<>> <<5399d374-2089-492a-b830-9eb2baac82a6@default>> <> <8e713508-f360-4fcd-9288-e094d450683a@default> X-Spam-Score: -2.3 (--) 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.3 (---) > Date: Sun, 07 Oct 2018 16:39:07 +0200 > From: charles@aurox.ch (Charles A. Roelli) > > But the Emacs manual does lack an index entry for "deactivating the > mark", which seems like an area for improvement. FWIW, this change for emacs-26 should fix it, as well as adding an entry for activating the mark. diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi index 0ffa9f7..1050587 100644 --- a/doc/emacs/mark.texi +++ b/doc/emacs/mark.texi @@ -17,11 +17,13 @@ Mark changes. @cindex active region +@cindex activating the mark Setting the mark at a position in the text also @dfn{activates} it. When the mark is active, we say also that the region is active; Emacs indicates its extent by highlighting the text within it, using the @code{region} face (@pxref{Face Customization}). +@cindex deactivating the mark After certain non-motion commands, including any command that changes the text in the buffer, Emacs automatically @dfn{deactivates} the mark; this turns off the highlighting. You can also explicitly From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Oct 2018 02:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: charles@aurox.ch Cc: 32956@debbugs.gnu.org Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.15389657313865 (code B ref 32956); Mon, 08 Oct 2018 02:29:02 +0000 Received: (at 32956) by debbugs.gnu.org; 8 Oct 2018 02:28:51 +0000 Received: from localhost ([127.0.0.1]:39788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9LHu-00010G-N8 for submit@debbugs.gnu.org; Sun, 07 Oct 2018 22:28:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9LHt-000101-2r for 32956@debbugs.gnu.org; Sun, 07 Oct 2018 22:28:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9LHk-0004pL-Ti for 32956@debbugs.gnu.org; Sun, 07 Oct 2018 22:28:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9LHk-0004pH-QD; Sun, 07 Oct 2018 22:28:40 -0400 Received: from [176.228.60.248] (port=1877 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g9LHk-00076j-DJ; Sun, 07 Oct 2018 22:28:40 -0400 Date: Mon, 08 Oct 2018 05:28:33 +0300 Message-Id: <83woqtyxwu.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (charles@aurox.ch) References: <<>> <<5399d374-2089-492a-b830-9eb2baac82a6@default>> <> <8e713508-f360-4fcd-9288-e094d450683a@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.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: -6.0 (------) > Date: Sun, 07 Oct 2018 21:42:07 +0200 > From: charles@aurox.ch (Charles A. Roelli) > Cc: 32956@debbugs.gnu.org > > FWIW, this change for emacs-26 should fix it, as well as adding an > entry for activating the mark. > > diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi > index 0ffa9f7..1050587 100644 > --- a/doc/emacs/mark.texi > +++ b/doc/emacs/mark.texi > @@ -17,11 +17,13 @@ Mark > changes. > > @cindex active region > +@cindex activating the mark > Setting the mark at a position in the text also @dfn{activates} it. > When the mark is active, we say also that the region is active; Emacs > indicates its extent by highlighting the text within it, using the > @code{region} face (@pxref{Face Customization}). > > +@cindex deactivating the mark > After certain non-motion commands, including any command that > changes the text in the buffer, Emacs automatically @dfn{deactivates} > the mark; this turns off the highlighting. You can also explicitly Fine with me, thanks. From unknown Fri Aug 15 20:57:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Oct 2018 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 32956@debbugs.gnu.org Reply-To: charles@aurox.ch Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153901920628511 (code B ref 32956); Mon, 08 Oct 2018 17:21:01 +0000 Received: (at 32956) by debbugs.gnu.org; 8 Oct 2018 17:20:06 +0000 Received: from localhost ([127.0.0.1]:40721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9ZCQ-0007Pn-5p for submit@debbugs.gnu.org; Mon, 08 Oct 2018 13:20:06 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:59695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9ZCO-0007P9-U9 for 32956@debbugs.gnu.org; Mon, 08 Oct 2018 13:20:05 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 416A522895 for <32956@debbugs.gnu.org>; Mon, 8 Oct 2018 17:24:03 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1539019442; x=1539883443; bh=wm mnrnCDpt18zAFTHT/hGgR6g68lc8jvpDFy4rYYQIw=; b=XNXdM93+AxGUgKexf9 st5x6wSmT41++FtqyfEuS3kGGLM7I82ULGC3rYkCQPXkHJN/ecqXidd93fcRydhS dKrOtOZN/PkrrxFy0VzPDiPSrsyvUw4fWgcfgiFpGAcy2ntWNaD1RHOZyf+XXeT7 rKhLR7+pgSiT/y2hmyF6jtOAs= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CuJ0TRe4pUPO for <32956@debbugs.gnu.org>; Mon, 8 Oct 2018 17:24:02 +0000 (UTC) Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 0D6D622882; Mon, 8 Oct 2018 17:24:01 +0000 (UTC) Date: Mon, 08 Oct 2018 19:23:47 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: <83woqtyxwu.fsf@gnu.org> (message from Eli Zaretskii on Mon, 08 Oct 2018 05:28:33 +0300) References: <<>> <<5399d374-2089-492a-b830-9eb2baac82a6@default>> <> <8e713508-f360-4fcd-9288-e094d450683a@default> <83woqtyxwu.fsf@gnu.org> X-Spam-Score: -2.3 (--) 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.3 (---) > Date: Mon, 08 Oct 2018 05:28:33 +0300 > From: Eli Zaretskii > > > diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi > > index 0ffa9f7..1050587 100644 > > --- a/doc/emacs/mark.texi > > +++ b/doc/emacs/mark.texi > > @@ -17,11 +17,13 @@ Mark > > changes. > > > > @cindex active region > > +@cindex activating the mark > > Setting the mark at a position in the text also @dfn{activates} it. > > When the mark is active, we say also that the region is active; Emacs > > indicates its extent by highlighting the text within it, using the > > @code{region} face (@pxref{Face Customization}). > > > > +@cindex deactivating the mark > > After certain non-motion commands, including any command that > > changes the text in the buffer, Emacs automatically @dfn{deactivates} > > the mark; this turns off the highlighting. You can also explicitly > > Fine with me, thanks. Thanks, I've pushed it.