From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation Date: Sat, 06 Oct 2018 16:19:55 +0200 Message-ID: Reply-To: charles@aurox.ch NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1538835311 14358 195.159.176.226 (6 Oct 2018 14:15:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 14:15:11 +0000 (UTC) To: 32956@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 16:15:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8nMJ-0003bl-0l for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 16:15:07 +0200 Original-Received: from localhost ([::1]:39375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8nOP-0007y9-8N for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 10:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8nOG-0007xt-Ow for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:17:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8nOA-0005lZ-LT for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:17:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8nOA-0005lR-HC for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g8nOA-0004LG-B2 for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 10:17:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153883539916655 (code B ref -1); Sat, 06 Oct 2018 14:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2018 14:16:39 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150961 Archived-At: 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].