mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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.")
|
||||
|
Reference in New Issue
Block a user