* s/mu4e-attachments-actions/mu4e-attachment-actions/
This commit is contained in:
@ -395,7 +395,7 @@ point in eiter the headers buffer or the view buffer."
|
|||||||
(plist-get (mu4e-message-at-point t) field))
|
(plist-get (mu4e-message-at-point t) field))
|
||||||
|
|
||||||
(defun mu4e-choose-action (prompt actions)
|
(defun mu4e-choose-action (prompt actions)
|
||||||
"Ask user with PROMPT to choose some action from ACTIONS. ACTIONS
|
"Ask user with PROMPT to choose some action from ACTIONS. ACTIONS
|
||||||
is a list of actions like `mu4e-view-attachment-actions',
|
is a list of actions like `mu4e-view-attachment-actions',
|
||||||
`mu4e-view-actions', `mu4e-header-actions'. Returns the
|
`mu4e-view-actions', `mu4e-header-actions'. Returns the
|
||||||
action (function) to invoke, or nil. "
|
action (function) to invoke, or nil. "
|
||||||
|
|||||||
@ -300,7 +300,7 @@ where:
|
|||||||
(defalias 'mu4e-view-open-attachment-emacs 'mu4e--dummy-func)
|
(defalias 'mu4e-view-open-attachment-emacs 'mu4e--dummy-func)
|
||||||
(defalias 'mu4e-view-open-pipe-attachment 'mu4e--dummy-func)
|
(defalias 'mu4e-view-open-pipe-attachment 'mu4e--dummy-func)
|
||||||
|
|
||||||
(defvar mu4e-view-attachments-actions
|
(defvar mu4e-view-attachment-actions
|
||||||
'( ("open-with" ?w mu4e-view-open-attachment-with)
|
'( ("open-with" ?w mu4e-view-open-attachment-with)
|
||||||
("in-emacs" ?e mu4e-view-open-attachment-emacs)
|
("in-emacs" ?e mu4e-view-open-attachment-emacs)
|
||||||
("pipe" ?| mu4e-view-pipe-attachment))
|
("pipe" ?| mu4e-view-pipe-attachment))
|
||||||
|
|||||||
@ -692,7 +692,7 @@ message-at-point, then do it. The actions are specified in
|
|||||||
(let* ((msg (or msg (mu4e-message-at-point t)))
|
(let* ((msg (or msg (mu4e-message-at-point t)))
|
||||||
(actionfunc (mu4e-choose-action
|
(actionfunc (mu4e-choose-action
|
||||||
"Action on attachment: "
|
"Action on attachment: "
|
||||||
mu4e-view-attachments-actions))
|
mu4e-view-attachment-actions))
|
||||||
(attnum (mu4e--get-attach-num "Which attachment" msg)))
|
(attnum (mu4e--get-attach-num "Which attachment" msg)))
|
||||||
(when (and actionfunc attnum)
|
(when (and actionfunc attnum)
|
||||||
(funcall actionfunc msg attnum))))
|
(funcall actionfunc msg attnum))))
|
||||||
|
|||||||
Reference in New Issue
Block a user