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


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "michael_heerdegen <at> web.de" <michael_heerdegen <at> web.de>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, "tsdh <at> gnu.org" <tsdh <at> gnu.org>
Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled
Date: Mon, 20 Jan 2025 19:20:10 +0000
> > Is that necessary?  I can't see why it would be.
> 
> It is necessary because the macro must "freeze" the marked file while
> it maps over them.  Otherwise, the macro doesn't work on a snapshot,
> it works on a list that could change under its feet, which is not a
> good way of writing programs that must give predictable results.

The macro _doesn't_ map over files.  It maps
over the marked _lines_.  The macro is all
about the displayed Dired buffer (listing(s)).
It need not do anything with or to any of the
files listed on the marked lines.

I do agree that normally, usually, most of
the time a _use_ of the macro will not want
to allow the display to change while it's
processing a particular marked line.

What I don't (yet) agree with (or see) is
the constraint that the macro should, itself,
prevent things while it's iterating over the
marked lines and invoking a function when on
each one, in turn.

I don't understand why we wouldn't, as always
till now, leave any such "prevention", or
other control, up to the code that invokes
the macro.




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.