From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22338: 25.0.50; deactivate-mark regression Date: Sat, 16 Jan 2016 10:24:46 +0200 Message-ID: <8337tyextd.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452932724 30459 80.91.229.3 (16 Jan 2016 08:25:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2016 08:25:24 +0000 (UTC) Cc: 22338@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 16 09:25:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKMAY-0004wT-Ez for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jan 2016 09:25:10 +0100 Original-Received: from localhost ([::1]:50067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKMAX-00030z-KD for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jan 2016 03:25:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKMAT-00030i-QX for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 03:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKMAQ-0002kS-KF for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 03:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKMAQ-0002kK-HW for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 03:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aKMAQ-0001qg-Dr for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 03:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jan 2016 08:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22338 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22338-submit@debbugs.gnu.org id=B22338.14529326987094 (code B ref 22338); Sat, 16 Jan 2016 08:25:02 +0000 Original-Received: (at 22338) by debbugs.gnu.org; 16 Jan 2016 08:24:58 +0000 Original-Received: from localhost ([127.0.0.1]:50434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKMAM-0001qM-In for submit@debbugs.gnu.org; Sat, 16 Jan 2016 03:24:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39862) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKMAL-0001q5-8R for 22338@debbugs.gnu.org; Sat, 16 Jan 2016 03:24:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKMAD-0002fh-2i for 22338@debbugs.gnu.org; Sat, 16 Jan 2016 03:24:52 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKMAC-0002fc-Vj; Sat, 16 Jan 2016 03:24:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1938 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aKMA9-0000xx-Qa; Sat, 16 Jan 2016 03:24:46 -0500 In-reply-to: (message from Leo Liu on Sat, 09 Jan 2016 23:39:37 +0800) 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: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111669 Archived-At: > From: Leo Liu > Date: Sat, 09 Jan 2016 23:39:37 +0800 > > 1. Emacs -q > 2. Open a file and mark an active region > 3. (revert-buffer nil t t) > > The mark is still active after the buffer revert. This isn't the case > for emacs 24.5. When I try this with different files and different changes actually made to the file behind Emacs's back, I see the region deactivate every time I revert and the file on disk was really changed. Maybe it doesn't always deactivate the region, but it certainly doesn't always keep it active, except when the file on disk didn't change at all. Do you really see the region remain active every revert, no matter what the changes to the file on disk? Can you show a detailed recipe for that? Anyway, since the documentation never says what will happen with the region, I tend to consider this behavior unspecified: why should Lisp programs expect anything specific to happen to the region during a revert? > The trouble is if the file has changed on disk (e.g. by another process > such as vim), the mark is still active after the revert. Why is that trouble? Thanks.