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
View this message in rfc822 format
> > 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.