From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12863: Annoying bug in revert-buffer Date: Sun, 11 Nov 2012 20:07:54 -0500 Message-ID: <20640.19434.867442.865141@gnu.org> References: <87d2zkl61y.fsf@Compaq.site.inet> <2qlie83qxz.fsf@fencepost.gnu.org> <87625bsx8d.fsf@Compaq.site.inet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352682528 966 80.91.229.3 (12 Nov 2012 01:08:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 01:08:48 +0000 (UTC) Cc: 12863@debbugs.gnu.org To: Cecil Westerhof Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 02:08:59 2012 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 1TXiWI-0002IH-N2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 02:08:58 +0100 Original-Received: from localhost ([::1]:37850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXiW9-0007kp-0i for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2012 20:08:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXiW4-0007kT-A1 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:08:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXiW1-0004rY-7E for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:08:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXiW1-0004rU-3b for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:08:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TXiWM-00081k-8f for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Nov 2012 01:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12863 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12863-submit@debbugs.gnu.org id=B12863.135268250130796 (code B ref 12863); Mon, 12 Nov 2012 01:09:02 +0000 Original-Received: (at 12863) by debbugs.gnu.org; 12 Nov 2012 01:08:21 +0000 Original-Received: from localhost ([127.0.0.1]:33973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXiVg-00080e-GY for submit@debbugs.gnu.org; Sun, 11 Nov 2012 20:08:21 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49959) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXiVe-00080W-1R for 12863@debbugs.gnu.org; Sun, 11 Nov 2012 20:08:19 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TXiVH-0000mz-0S; Sun, 11 Nov 2012 20:07:55 -0500 In-Reply-To: <87625bsx8d.fsf@Compaq.site.inet> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: c`hp*,sA8+o<[]WSGf@s(0"4nZ98#0nuvG5`;8@Uim'wzck"7ydhJ=Mx#:l3;SPi}4?c}S X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -4.4 (----) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66778 Archived-At: (Please use reply-to-all) Cecil Westerhof wrote (on Sun, 11 Nov 2012 at 21:25 +0100): > >> Are you talking about auto-revert-mode? > >> If so, C-h v auto-revert-interval (default 5 seconds). > > > > Actually that's probably irrelevant. > > Yes that is where I am talking about. Emacs sees that the file is > changed and reloads it in the buffer. But if in the same second the > file changes again, it is not reloaded. > > Here I am using: > GNU Emacs 23.3.1 (i586-suse-linux-gnu, GTK+ Version 2.24.7) of 2011-10-30 on build34 > > But I have seen the same problem under Windows. At the moment I do not > know which version that was. If needed I can retrieve that one also. > > A solution would be: (also) reloading a second after a change. I'm still unsure if you are talking about auto-revert-mode or an explicit call to revert-buffer. If I read the code correctly, revert-buffer does not care about time-stamps. auto-revert-mode does, and I think in Emacs 24.2 and earlier, file time-stamps were only stored to second precision. So indeed in Emacs 24.2 and earlier, file modifications that happened within a second of reverting would probably be invisible to auto-revert mode. Emacs 24.3 (not yet released) will use much higher resolution time-stamps, so this issue should be fixed there.