[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autorevert.el
From: |
Luc Teirlinck |
Subject: |
Re: autorevert.el |
Date: |
Sun, 14 Mar 2004 18:08:03 -0600 (CST) |
Stefan Monnier wrote:
How does the code figure out whether auto-reverting the buffer is needed?
I mean, there's no visited-time to check, right?
For dired buffers, visited-file-modtime works, even though
verify-visited-file-modtime does not. For non-file, non-vc, non-dired
buffers, the current code just reverts every auto-revert-interval
seconds without checking whether reverting is actually needed. For
most of these buffers we might actually have to keep things that way,
since checking whether the buffer needs reverting could easily take
longer than reverting it.
So maybe we should add a `auto-revert-stale-function' which dired and
buffer-menu can set. This will clean up the current staleness checking
function since it will only have to work for file-buffers, and will
make sure that revert-buffer-function is only called by auto-revert
for modes which have auto-revert support.
I will try to make the buffer-menu auto-revert in a non-obnoxious way
and see how things work out.
Sincerely,
Luc.
- autorevert.el, Luc Teirlinck, 2004/03/03
- Re: autorevert.el, Stefan Monnier, 2004/03/04
- Re: autorevert.el, Luc Teirlinck, 2004/03/06
- Re: autorevert.el, Stefan Monnier, 2004/03/07
- Re: autorevert.el, Luc Teirlinck, 2004/03/08
- Re: autorevert.el, Luc Teirlinck, 2004/03/12
- Re: autorevert.el, Kai Grossjohann, 2004/03/13
- Re: autorevert.el, Stefan Monnier, 2004/03/14
- Re: autorevert.el,
Luc Teirlinck <=
- Re: autorevert.el, Stefan Monnier, 2004/03/14
- Re: autorevert.el, Eli Zaretskii, 2004/03/15
- Re: autorevert.el, Luc Teirlinck, 2004/03/15
- Re: autorevert.el, Eli Zaretskii, 2004/03/17
- Re: autorevert.el, Luc Teirlinck, 2004/03/18
- Re: autorevert.el, Stefan Monnier, 2004/03/19
- Re: autorevert.el, Luc Teirlinck, 2004/03/20
- Re: autorevert.el, Stefan Monnier, 2004/03/23
- Re: autorevert.el, Luc Teirlinck, 2004/03/23
- Re: autorevert.el, Luc Teirlinck, 2004/03/23