unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Leo Liu <sdl.web@gmail.com>
Cc: 22338@debbugs.gnu.org
Subject: bug#22338: 25.0.50; deactivate-mark regression
Date: Fri, 19 Feb 2016 23:00:21 +0200	[thread overview]
Message-ID: <838u2gquu2.fsf@gnu.org> (raw)
In-Reply-To: <m2d1rue359.fsf@gmail.com> (message from Leo Liu on Thu, 18 Feb 2016 18:14:42 +0800)

> From: Leo Liu <sdl.web@gmail.com>
> Date: Thu, 18 Feb 2016 18:14:42 +0800
> 
> On 2016-02-16 15:27 +0800, Leo Liu wrote:
> > The bug is still there however I can only reproduce this with a local
> > setup involving Erlang + wrangler + emacs (24.5, 25.0.91).
> 
> I have found a recipe to partially reproduce the bug.
> 
> 1. start emacs -Q
> 2. define a command
> 
>    (defun test ()
>      (interactive)
>      (shell-command (format "echo 'test' >> %s" buffer-file-name))
>      (revert-buffer nil t t))
> 
> 3. Open a file, mark an active region and M-x test
> 
> You should observe the mark stay active. The active region goes off
> after 2 seconds. In emacs 24.5 the mark will go off immediately. With my
> local setup the active region stays on. Thus I am calling this recipe
> ``partial''.
> 
> I wonder if it helps understand the issue.

Not really.  In "emacs -Q", the region is deactivated by the command
loop, when it notices that the variable deactivate-mark is non-nil.
It is non-nil because the buffer was modified.  So this sounds like
Emacs working as designed to me.  In Emacs 24.5, the region is
deactivated by the same code for the same reason.  I don't know why in
24.5 this happens immediately, whereas in 25.0 it takes an extra
second (my guess is this is related to redisplay, and perhaps also to
the changed implementation of displaying the region).





  reply	other threads:[~2016-02-19 21:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-09 15:39 bug#22338: 25.0.50; deactivate-mark regression Leo Liu
2016-01-16  8:24 ` Eli Zaretskii
2016-01-21 10:13   ` Leo Liu
2016-01-21 16:08     ` Eli Zaretskii
2016-02-01 11:02       ` Leo Liu
2016-02-01 19:08         ` Eli Zaretskii
2016-02-02  1:36           ` Leo Liu
2016-02-16  7:06             ` Lars Ingebrigtsen
2016-02-16  7:27               ` Leo Liu
2016-02-18 10:14                 ` Leo Liu
2016-02-19 21:00                   ` Eli Zaretskii [this message]
2022-02-15 10:45                     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838u2gquu2.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22338@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).