* bug#8371: auto-revert-mode check
@ 2011-03-28 22:22 Ken Raeburn
2011-03-29 1:19 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Ken Raeburn @ 2011-03-28 22:22 UTC (permalink / raw)
To: 8371
It looks like auto-revert-mode in 23.2 checks the file timestamp to see when the file is updated. But I often see the file as having an extra line or two that Emacs doesn't pick up for a long time, until something else is added to the file. I don't have time to look into it right now at work, but my guess is either/both (1) Emacs records the "changed" timestamp after reading the updated content, so the timestamp could correspond to an updated version relative to the buffer content; (2) Emacs isn't recording/checking the timestamp with enough granularity (which on this NFS file server and Linux NFS client, appears to be a millisecond, though file-attributes appears to return no sub-second component), so updates within the space of a second after Emacs rereads the file aren't detected.
Checking file size too would help, at least for files updated by appending.
I think file-attributes needs to be able to return sub-second granularity timestamps for modern operating systems, though it may require using non-standard interfaces, like GNU libc's stat.st_atim.tv_nsec or stat.st_atimensec field.
I'll see if I have time to look into this later this week.
Ken
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#8371: auto-revert-mode check
2011-03-28 22:22 bug#8371: auto-revert-mode check Ken Raeburn
@ 2011-03-29 1:19 ` Stefan Monnier
2013-06-13 16:27 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2011-03-29 1:19 UTC (permalink / raw)
To: Ken Raeburn; +Cc: 8371
> I'll see if I have time to look into this later this week.
Please try it with Emacs-24 first. I've installed a change a few months
ago for problems that are similar (my memory is a bit fuzzy on what the
problems looked like and it was for PDF files, but there's a good
chance it tries to address the same underlying problem).
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#8371: auto-revert-mode check
2011-03-29 1:19 ` Stefan Monnier
@ 2013-06-13 16:27 ` Glenn Morris
0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2013-06-13 16:27 UTC (permalink / raw)
To: 8371-done
Version: 24.3
File time stamps are higher resolution now, so between that and
improvements to reverting, whatever issue there was here is probably
fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-13 16:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-28 22:22 bug#8371: auto-revert-mode check Ken Raeburn
2011-03-29 1:19 ` Stefan Monnier
2013-06-13 16:27 ` Glenn Morris
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).