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: Tassilo Horn <tsdh <at> gnu.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled
Date: Sat, 18 Jan 2025 09:42:11 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

>> Well, there are exactly 100 files.  So it processed 62 files twice,
>> compressing them first and then uncompressing them again (or skipped
>> some and processed other even more).
>
> It could be that the order of the marked files changed after
> reverting.
>
> But even if not: if you look at the use of the variable
> `next-position' in `dired-map-over-marks', it is also possible to get
> such an effect if the line lengths change.
>
> So the command `dired-do-compress' is not robust against this effect.
> Other commands calculate the complete list of marked files first,
> `dired-do-chxxx' and `dired-do-chmod' for example.  So I think it is
> not unavoidable that it is like that.

What is the reason that there are two different approaches to process
all marked files, i.e., dired-map-over-marks vs. dired-get-marked-files?

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.