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 19:00:47 +0300 Message-ID: <835zro8p1s.fsf@gnu.org> References: <831s2dakjz.fsf@gnu.org> <877ec5wid3.fsf@metalevel.at> <83d0lx8bsb.fsf@gnu.org> <87mul0rezk.fsf@metalevel.at> <838swk8rfr.fsf@gnu.org> <87o95gfqdp.fsf@metalevel.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181475"; 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 18:03:11 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 1hDWjn-000l2K-BN for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 18:03:11 +0200 Original-Received: from localhost ([127.0.0.1]:55568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDWjm-00036G-7K for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 12:03:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDWim-0002PB-62 for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 12:02:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDWig-0005qf-F6 for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 12:02:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDWig-0005q8-38 for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 12:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDWif-00052V-Tq for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 12:02: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 16:02: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.155473926319302 (code B ref 35177); Mon, 08 Apr 2019 16:02:01 +0000 Original-Received: (at 35177) by debbugs.gnu.org; 8 Apr 2019 16:01:03 +0000 Original-Received: from localhost ([127.0.0.1]:50135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDWhi-00051F-FY for submit@debbugs.gnu.org; Mon, 08 Apr 2019 12:01:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDWhg-00050f-Bu for 35177@debbugs.gnu.org; Mon, 08 Apr 2019 12:01:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDWha-0004wP-Kb; Mon, 08 Apr 2019 12:00:54 -0400 Original-Received: from [176.228.60.248] (port=3405 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hDWhZ-0002n3-Cb; Mon, 08 Apr 2019 12:00:53 -0400 In-reply-to: <87o95gfqdp.fsf@metalevel.at> (message from Markus Triska on Mon, 08 Apr 2019 17:50:10 +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:157350 Archived-At: > From: Markus Triska > Cc: 35177@debbugs.gnu.org > Date: Mon, 08 Apr 2019 17:50:10 +0200 > > Eli Zaretskii writes: > > > 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. > > Here is a more complete recipe, could you please try it: > > 1. download deactivate_mark.el with > $ wget https://www.metalevel.at/ei/deactivate_mark.el > > 2. start Emacs with > $ emacs -Q deactivate_mark.el > > 3. move point at the end of the form and evaluate it with C-x C-e. > > The result is that "hello" is displayed in buffer "t", and the mark is > not active. The content of deactivate_mark.el is: > > (let (deactivate-mark) > (switch-to-buffer (get-buffer-create "t")) > (insert "hello") > (set-mark-command nil) > (move-beginning-of-line nil)) > > It seems to play a role whether its buffer is modified or not, hence > this receipe starting from a fresh file and an unmodified buffer. > > Can you reproduce this up to here? If so, please proceed as follows: > > 4. Kill the "t" buffer with C-x C-k RET > > 5. Add a space to the end of deactivate_mark.el by pressing SPACE. > > 6. Evaluate the form again with C-x C-e. > > After these steps, "hello" is highlighted and the mark is active. Also, > on all further iterations of (4) to (6), the region is again active. > > Can you reproduce this? Yes. > If possible, could you please make it so that the mark is active > also on the first run, i.e., after steps (1) to (3)? Not sure.