diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2020-05-15 23:41:04 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2020-05-15 23:42:05 +0300 |
| commit | a2d315df4ce903d967e4e63d1c223593ac85bcb0 (patch) | |
| tree | 3cda8688edec1b2b212f38f6fc0c45097d95014d | |
| parent | 59ddfb410c4a40a2f5701b56a3aa30b353571beb (diff) | |
mu4e-compose: fix external use (`compose-mail')
Ensure compose-mail with mu works again, including passing various
parameters.
Fixes #1695.
| -rw-r--r-- | mu4e/mu4e-compose.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mu4e/mu4e-compose.el b/mu4e/mu4e-compose.el index faee887..27793c5 100644 --- a/mu4e/mu4e-compose.el +++ b/mu4e/mu4e-compose.el @@ -859,7 +859,7 @@ called after the mail has been sent or put aside, and the mail buffer buried." ;; create a new draft message 'resetting' (as below) is not actually needed in this case, but ;; let's prepare for the re-edit case as well - (mu4e~compose-handler 'new) + (mu4e~compose-handler-real 'new) (when (message-goto-to) ;; reset to-address, if needed (message-delete-line)) @@ -891,7 +891,11 @@ buffer buried." ;; happily, we can re-use most things from message mode ;;;###autoload (define-mail-user-agent 'mu4e-user-agent - 'mu4e~compose-mail + (lambda (to subject other-headers continue switch-function yank-action + send-actions return-action) + (mu4e~start (lambda() (mu4e~compose-mail to subject other-headers continue + switch-function yank-action + send-actions return-action)))) 'message-send-and-exit 'message-kill-buffer 'message-send-hook) |
