From 4d9ea6853b882a02f72bbe219a43c2a682d73cb8 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 20 Sep 2022 22:29:27 +0800 Subject: [PATCH] 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. --- modules/email/mu4e/autoload/email.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/email/mu4e/autoload/email.el b/modules/email/mu4e/autoload/email.el index 6c58a1468..0807d2f03 100644 --- a/modules/email/mu4e/autoload/email.el +++ b/modules/email/mu4e/autoload/email.el @@ -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.")