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 05:35:00 +0300 Message-ID: <83d0lx8bsb.fsf@gnu.org> References: <831s2dakjz.fsf@gnu.org> <877ec5wid3.fsf@metalevel.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="242211"; 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 04:41:14 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 1hDKDh-0010sr-Hv for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 04:41:13 +0200 Original-Received: from localhost ([127.0.0.1]:46309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDKDg-0002JF-D6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Apr 2019 22:41:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDKDQ-0002CQ-C0 for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 22:40:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDK8h-00025E-V8 for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 22:36:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDK8g-00024L-6m for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 22:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDK8f-0007sw-VF for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 22:36:01 -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 02:36:01 +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.155469091530254 (code B ref 35177); Mon, 08 Apr 2019 02:36:01 +0000 Original-Received: (at 35177) by debbugs.gnu.org; 8 Apr 2019 02:35:15 +0000 Original-Received: from localhost ([127.0.0.1]:48890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDK7u-0007rt-PY for submit@debbugs.gnu.org; Sun, 07 Apr 2019 22:35:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDK7s-0007rd-My for 35177@debbugs.gnu.org; Sun, 07 Apr 2019 22:35:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDK7n-0001hB-0J; Sun, 07 Apr 2019 22:35:07 -0400 Original-Received: from [176.228.60.248] (port=1676 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hDK7l-0002zN-NP; Sun, 07 Apr 2019 22:35:06 -0400 In-reply-to: <877ec5wid3.fsf@metalevel.at> (message from Markus Triska on Mon, 08 Apr 2019 00:39:04 +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:157336 Archived-At: > From: Markus Triska > Cc: 35177@debbugs.gnu.org > Date: Mon, 08 Apr 2019 00:39:04 +0200 > > Eli Zaretskii writes: > > > I think you need to put the entire progn inside the binding of > > deactivate-mark. IOW, the binding should be in effect when the > > command terminates. > > Please consider the following additional test cases: Both of the > following forms keep the mark activated, while neither of them has the > binding in effect when the commond terminates. None of your additional test cases do what I said I thought you should do, though, do they? > So, in other words, binding deactivate-mark to nil deactivates the mark, > which is the opposite of what I expect it to do. I don't think it's something in your code that deactivates the mark, it's what Emacs does internally when a command finishes.