From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35177: 27.0.50; Binding deactivate-mark to nil unexpectedly deactivates the mark Date: Mon, 08 Apr 2019 18:09:12 +0300 Message-ID: <838swk8rfr.fsf@gnu.org> References: <831s2dakjz.fsf@gnu.org> <877ec5wid3.fsf@metalevel.at> <83d0lx8bsb.fsf@gnu.org> <87mul0rezk.fsf@metalevel.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207978"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35177@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 08 17:10:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDVua-000s1K-G2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 17:10:16 +0200 Original-Received: from localhost ([127.0.0.1]:54530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDVuZ-0006bf-7b for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 11:10:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDVuN-0006aZ-Iq for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 11:10:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDVuM-0001n2-Ka for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 11:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDVuM-0001mp-EN for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 11:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDVuM-0003lR-7s for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 11:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Apr 2019 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35177 X-GNU-PR-Package: emacs Original-Received: via spool by 35177-submit@debbugs.gnu.org id=B35177.155473616414401 (code B ref 35177); Mon, 08 Apr 2019 15:10:02 +0000 Original-Received: (at 35177) by debbugs.gnu.org; 8 Apr 2019 15:09:24 +0000 Original-Received: from localhost ([127.0.0.1]:50105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDVtj-0003kC-V9 for submit@debbugs.gnu.org; Mon, 08 Apr 2019 11:09:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDVti-0003k0-V2 for 35177@debbugs.gnu.org; Mon, 08 Apr 2019 11:09:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDVtd-00015w-AJ; Mon, 08 Apr 2019 11:09:17 -0400 Original-Received: from [176.228.60.248] (port=4208 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hDVtc-0008FV-Po; Mon, 08 Apr 2019 11:09:17 -0400 In-reply-to: <87mul0rezk.fsf@metalevel.at> (message from Markus Triska on Mon, 08 Apr 2019 12:03:11 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:157346 Archived-At: > From: Markus Triska > Cc: 35177@debbugs.gnu.org > Date: Mon, 08 Apr 2019 12:03:11 +0200 > > Eli Zaretskii writes: > > > None of your additional test cases do what I said I thought you should > > do, though, do they? > > In emacs -Q, please evaluate the following form with C-x C-e: > > (let (deactivate-mark) > (switch-to-buffer (get-buffer-create "t")) > (insert "hello") > (set-mark-command nil) > (move-beginning-of-line nil)) > > This does what you say. However, the mark is deactivated after the form > is executed, which is the opposite of what I expect from this snippet. I cannot reproduce your result: the above does show an active mark after the execution, both in Emacs 26.2 and Emacs 27.0.50. > Please also note that the documentation of deactivate-mark states > "around the code that does the modification". If other preconditions are > necessary to consistently retain the active mark, could you please > document them? Thank you. You seem to think that I know something you don't, and just withhold it. But that's not so: I'm exactly like you, trying to make sense of the behavior and the documentation. I just arrived at slightly different conclusions, and saw that by modifying your examples I can get the behavior described by the docs, while I cannot reproduce some of your results, that's all.