GNU bug report logs - #75626
31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled

Previous Next

Package: emacs;

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 #286 received at 75626-done <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, Eli Zaretskii <eliz <at> gnu.org>,
 75626-done <at> debbugs.gnu.org
Subject: Re: bug#75626: 31.0.50; Dired misses or double-processes files when
 auto-revert-mode is enabled
Date: Sun, 02 Feb 2025 12:15:57 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

>> Even if we would like to cater for this case, I don't understand how
>> your approach addresses the retries for buffers that skipped/inhibited
>> auto-revert.  I mean, I can envision that auto-revert maintains a list
>> of buffers it skipped but how would that be worked through?  Another
>> timer that runs more often that auto-revert-interval?
>
> I haven't investigated this yet. Perhaps you are right, and a later
> polling does the job. But this problem is recent anyway (if it is a
> problem); my proposal doesn't make it worse.

Yes, that's for sure.

>> One fact in favour for some inhibit-auto-revert variable is that
>> currently we abuse buffer-stale-function whose docs state "Function
>> to check wether a buffer _needs_ reverting" with functions that
>> actually check if we need and _allow_ reverting.  If we had
>> inhibit-auto-revert, the allowance part could and should be removed
>> from buffer-stale-function.
>
> See my patch, it does exactly this.

I don't agree, see my other mail.  In your patch, it's still
dired-buffer-stale-p who does the allowance check.

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.