Subject: RE: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled

From: Drew Adams <[email-masked]>
Date: Sat, 18 Jan 2025 21:17:41 +0000

> 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?

(Caveat: I'm not following this thread.)

The doc string, and how those two are used in
the code, tell you the answer.

`dired-get-marked-files' just gives you a list
of the marked files.  `dired-map-over-marks'
is a macro, not a function, and it _processes_
the files.

More precisely, `dired-map-over-marks' evals
some code with point on each marked line:

  "Eval BODY with point on each marked line.
   Return a list of BODY's results."