Skip to content

Commit

Permalink
mu4e-compose: return new buffer from mu4e--compose-setup
Browse files Browse the repository at this point in the history
I.e, and this applies to all mu4e-compose-* composition functions as
well.

Fixes #2653.
  • Loading branch information
djcb committed Mar 3, 2024
1 parent 131f084 commit e28c248
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mu4e/mu4e-compose.el
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,9 @@ COMPOSE-FUNC is a function / lambda to create the specific type
of message.
Optionally, SWITCH determines how to find a buffer for the message
(see SWITCH-FUNCTION in `compose-mail')."
(see SWITCH-FUNCTION in `compose-mail').
Returns the new buffer."
(cl-assert (member compose-type '(reply forward edit new)))
(unless (mu4e-running-p) (mu4e 'background)) ;; start if needed
(let* ((parent
Expand Down Expand Up @@ -775,7 +777,8 @@ Optionally, SWITCH determines how to find a buffer for the message
(setq-local ;;message-kill-actions actions
message-return-actions actions
message-send-actions actions
message-kill-actions actions)))))
message-kill-actions actions))
(current-buffer))))


;;;###autoload
Expand Down Expand Up @@ -875,7 +878,7 @@ must be from current user, as determined through
;;;###autoload
(defun mu4e-compose-resend (address)
"Re-send the message at point.
The message is resent as-is, without any editing. "
The message is resent as-is, without any editing."
(interactive
(list (completing-read
"Resend message to address: " mu4e--contacts-set)))
Expand Down

0 comments on commit e28c248

Please sign in to comment.