unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Cecil Westerhof <Cecil@decebal.nl>
Cc: 12863@debbugs.gnu.org
Subject: bug#12863: Annoying bug in revert-buffer
Date: Sun, 11 Nov 2012 20:07:54 -0500	[thread overview]
Message-ID: <20640.19434.867442.865141@gnu.org> (raw)
In-Reply-To: <87625bsx8d.fsf@Compaq.site.inet>


(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.





  parent reply	other threads:[~2012-11-12  1:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87d2zkl61y.fsf@Compaq.site.inet>
2012-11-11 19:00 ` bug#12863: Annoying bug in revert-buffer Glenn Morris
2012-11-11 19:03   ` Glenn Morris
     [not found]     ` <87625bsx8d.fsf@Compaq.site.inet>
2012-11-12  1:07       ` Glenn Morris [this message]
2012-11-12  1:54         ` Cecil Westerhof
2012-11-12 20:04           ` Glenn Morris
2012-11-13  1:40             ` Paul Eggert
2012-11-13  1:50               ` Glenn Morris
2012-11-12 20:45         ` Andreas Schwab
2012-11-12 21:12         ` Stefan Monnier

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=20640.19434.867442.865141@gnu.org \
    --to=rgm@gnu.org \
    --cc=12863@debbugs.gnu.org \
    --cc=Cecil@decebal.nl \
    /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).