tweak(mu4e): don't reverse dired marks to attach

Originally this was added to have the order of attached files match the
order of mark selection. Recent usage indicates that this was either
misguided or the behaviour has changed, as this now achieves the opposite
effect --- with nreverse files are attached in reverse order. Removing
nreverse provides the expected behaviour.
This commit is contained in:
TEC 2022-09-20 22:29:27 +08:00 committed by Henrik Lissner
parent 2662d68ae8
commit 4d9ea6853b

View file

@ -271,7 +271,7 @@ When otherwise called, open a dired buffer and enable `dired-mu4e-attach-ctrl-c-
(mapcar
;; don't attach directories
(lambda (f) (if (file-directory-p f) nil f))
(nreverse (dired-map-over-marks (dired-get-filename) nil))))))
(dired-map-over-marks (dired-get-filename) nil)))))
(if (not files-to-attach)
(progn
(message "No files marked, aborting.")