mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
emacs: mua: extract a common message-send function.
This commit adds a common message-send function for message-send and message-send-and-exit. At the moment the overlap is small, but the message-send function will get more complex.
This commit is contained in:
parent
0c52b5d3b2
commit
025bf3cd4a
1 changed files with 9 additions and 4 deletions
|
@ -490,15 +490,20 @@ will be addressed to all recipients of the source message."
|
||||||
(notmuch-mua-reply query-string sender reply-all)
|
(notmuch-mua-reply query-string sender reply-all)
|
||||||
(deactivate-mark)))
|
(deactivate-mark)))
|
||||||
|
|
||||||
(defun notmuch-mua-send-and-exit (&optional arg)
|
(defun notmuch-mua-send-common (arg &optional exit)
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(letf (((symbol-function 'message-do-fcc) #'notmuch-maildir-message-do-fcc))
|
(letf (((symbol-function 'message-do-fcc) #'notmuch-maildir-message-do-fcc))
|
||||||
(message-send-and-exit arg)))
|
(if exit
|
||||||
|
(message-send-and-exit arg)
|
||||||
|
(message-send arg))))
|
||||||
|
|
||||||
|
(defun notmuch-mua-send-and-exit (&optional arg)
|
||||||
|
(interactive "P")
|
||||||
|
(notmuch-mua-send-common arg 't))
|
||||||
|
|
||||||
(defun notmuch-mua-send (&optional arg)
|
(defun notmuch-mua-send (&optional arg)
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(letf (((symbol-function 'message-do-fcc) #'notmuch-maildir-message-do-fcc))
|
(notmuch-mua-send-common arg))
|
||||||
(message-send arg)))
|
|
||||||
|
|
||||||
(defun notmuch-mua-kill-buffer ()
|
(defun notmuch-mua-kill-buffer ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Add table
Reference in a new issue