GNU bug report logs -
#75626
31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled
Previous Next
Reported by: Tassilo Horn <tsdh <at> gnu.org>
Date: Fri, 17 Jan 2025 07:43:01 UTC
Severity: normal
Found in version 31.0.50
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #202 received at 75626 <at> debbugs.gnu.org (full text, mbox):
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
>> Anyway, below the current patch. It would be great if someone else
>> could test it, too.
>>
>> Obviously, the new inhibit-auto-revert should be mentioned in NEWS and
>> the elisp info docs which I'll do and post the final patch for review
>> before committing.
>
> I'm a bit late, and very sorry for that,
I'm not in a hurry.
> but: doesn't this just introduce a restricted twin of
> `buffer-stale-function'? This variable is already buffer local in
> dired buffers and can be used for the same purpose - or do I miss
> something?
You are essentially right. If some code wants to inhibit auto-revert it
could also do (let ((buffer-stale-function #'ignore)) ...) although, I
think, that auto-revert-tail-mode could still tail-revert for
file-visiting buffers.
That said, I think the new inhibit-auto-revert is much clearer in what
it does. We already have a lot of inhibit-* variables, so that's where
I would look first when my aim is to inhibit some action. FWIW, until a
week ago, I had no clue that there is a buffer-stale-function and that
it has something to do with auto-revert. (It probably also has other
uses, so maybe let-binding it to #'ignore could have side-effects.)
Bye,
Tassilo
This bug report was last modified 196 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.