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 21:44:46 +0200 Message-ID: References: <> <5399d374-2089-492a-b830-9eb2baac82a6@default> Reply-To: charles@aurox.ch NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1538854812 22116 195.159.176.226 (6 Oct 2018 19:40:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 19:40:12 +0000 (UTC) Cc: 32956@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 21:40:08 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 1g8sQn-0005bO-Ro for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 21:40:06 +0200 Original-Received: from localhost ([::1]:40217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8sSu-0005xF-8f for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 15:42:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8sSl-0005vy-Ok for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 15:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8sSg-00034r-Vx for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 15:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8sSg-00032t-9p for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 15:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g8sSg-0003jS-3R for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2018 15:42: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 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: Original-Received: via spool by 32956-submit@debbugs.gnu.org id=B32956.153885486614269 (code B ref 32956); Sat, 06 Oct 2018 19:42:02 +0000 Original-Received: (at 32956) by debbugs.gnu.org; 6 Oct 2018 19:41:06 +0000 Original-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 Original-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 Original-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 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 pSrsGIfLcWvM for <32956@debbugs.gnu.org>; Sat, 6 Oct 2018 19:45:00 +0000 (UTC) Original-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) In-reply-to: <5399d374-2089-492a-b830-9eb2baac82a6@default> (message from Drew Adams on Sat, 6 Oct 2018 14:48:01 +0000 (UTC)) 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:150966 Archived-At: > 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.