From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#17148: 23.1; Revert Buffer Date: Tue, 01 Apr 2014 20:04:28 +0200 Message-ID: <87lhvpncyb.fsf@gmx.de> References: <201403311333.s2VDXNuJ029811@tbfmdev1.ctasdev.tc.faa.gov> <87ppl1v893.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396375534 20150 80.91.229.3 (1 Apr 2014 18:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2014 18:05:34 +0000 (UTC) Cc: 17148@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 01 20:05:27 2014 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 1WV33p-0002oN-5g for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 20:05:21 +0200 Original-Received: from localhost ([::1]:33758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV33o-0004k3-CE for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 14:05:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV33e-0004YH-66 for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 14:05:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV33W-0003vq-RB for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 14:05:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV33W-0003uW-FW for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 14:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WV33V-0006wp-La for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 14:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 17148-submit@debbugs.gnu.org id=B17148.139637548126670 (code B ref 17148); Tue, 01 Apr 2014 18:05:01 +0000 Original-Received: (at 17148) by debbugs.gnu.org; 1 Apr 2014 18:04:41 +0000 Original-Received: from localhost ([127.0.0.1]:59677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV33A-0006w6-SV for submit@debbugs.gnu.org; Tue, 01 Apr 2014 14:04:41 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:56924) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV338-0006vv-6Z for 17148@debbugs.gnu.org; Tue, 01 Apr 2014 14:04:39 -0400 Original-Received: from detlef.gmx.de ([93.202.59.15]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0Mam2Q-1WjomP1NKU-00KR2j; Tue, 01 Apr 2014 20:04:35 +0200 In-Reply-To: (Glenn Morris's message of "Tue, 01 Apr 2014 11:54:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:qz7z+IVNu7Xg8wH6jXaUF/4MkPJ0tlz3dF1jP2iP6XvxhxX2QHT YoUFNiphCzIXbzCddHAfOh3PVkriMXgkZFt6cYF/E+dX22Lm9Gx07C+WC3pFuTifC2jaTNS nz1W8/pCqsMIb7NrKue/inXNHA5H0SN36WzwDBcqyytmA38DTTARCC8Ca0VYU0FKmnBs/bC j7aYZAMON8NhAd7p/e9bg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:87603 Archived-At: tags 17148 - notabug fixed 17148 24.4 thanks Glenn Morris writes: > Michael Albinus wrote: > >> Emacs is not notified, when a file changes its state outside Emacs. Only >> prior to writing to a file Emacs checks, whether a file has changed on disk. > > Why can't the revert-buffer menu-item check the file mode bits match, > the same way it verifies the modtime? IMO it should just call > file-attributes once, and use that to check time and permissions. Hmm, I wanted to implement something with file notifications. However, surprisingly this problem is reproducible in Emacs 23, but it is NOT reproducible with Emacs 24.3.50. This is because `revert-buffer-function' is set to `revert-buffer--default' since last year. My analysis was wrong, but the result (not a bug) is somehow right for Emacs 24.3. We shall changed that to "Fixed in 24.4", 'tho. Best regards, Michael.