tweak(mu4e): try harder to attach files in order
In 4d9ea6853b
I reacted to a either a change that I presume occurred
in org-msg at some point, or behaviour originally unnoticed, that led to
bulk-selected files being attached in reverse. Further investigation has
indicated that this isn't actually making attachment order work as
expected, just hiding the reverse behaviour from bulk-attachment. The
better approach is to keep the dired mark reversal, and change
org-msg-attach-attach to add new files to the end, not the start, of the
list of attachments.
This commit is contained in:
parent
30a4eb7f77
commit
f2d62acaad
2 changed files with 10 additions and 1 deletions
|
@ -292,7 +292,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))
|
||||
(dired-map-over-marks (dired-get-filename) nil)))))
|
||||
(nreverse (dired-map-over-marks (dired-get-filename) nil))))))
|
||||
(if (not files-to-attach)
|
||||
(progn
|
||||
(message "No files marked, aborting.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue