From 7f16b7422d1d50e3df2ded71d8241567801505ca Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Mon, 9 Oct 2017 14:11:10 -0500 Subject: [PATCH] mu4e: simplify what "e" does in mu4e-view mode The default was to use e to save one attachment or C-u e to save multiple. This simplifies it so that e simply offers to save one or many attachments. --- mu4e/mu4e-view.el | 9 +-------- mu4e/mu4e.texi | 3 +-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 72dcf566..74bf85f6 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -1228,14 +1228,7 @@ attachments, but as this is the default, you may not need it." (dolist (num attachnums) (mu4e-view-save-attachment-single msg num))))) -(defun mu4e-view-save-attachment (&optional multi) - "Offer to save attachment(s). -If MULTI (prefix-argument) is nil, save a single one, otherwise, -offer to save a range of attachments." - (interactive "P") - (if multi - (mu4e-view-save-attachment-multi) - (mu4e-view-save-attachment-single))) +(defalias #'mu4e-view-save-attachment #'mu4e-view-save-attachment-multi) (defun mu4e-view-open-attachment (&optional msg attnum) "Open attachment number ATTNUM from MSG. diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index ed6a9b68..5ce9a20f 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -1220,9 +1220,8 @@ C-u f fetches multiple URLs k save the numbered URL in the kill-ring. C-u k saves multiple URLs -e extract (save) attachment (asks for number) +e extract (save) one or more attachments (asks for numbers) (or: or S-RET with point on attachment) -C-u e extracts multiple attachments o open attachment (asks for number) (or: or M-RET with point on attachment)