mu4e-compose: split off parts in mu4e-draft; rework

Move draft-creation part of message-composition to a new file
mu4e-drafts

However, this is more than just some refactoring: rework the
message (draft) setup as such to ensure we always get a (non-active,
live) buffer back from the composition process.

This also fixes

(progn
  (compose-mail "test@example.org" "Test")
  (insert "TEST"))

as mentioned on the mailing list.

Fixes #2699
This commit is contained in:
Dirk-Jan C. Binnema
2024-04-23 19:19:26 +03:00
parent 178402fabb
commit 6a4d6a49c4
5 changed files with 771 additions and 670 deletions

View File

@ -1648,8 +1648,8 @@ The major mode for the composer is @code{mu4e-compose-mode}.
There are a view different ways to @emph{enter} the composer; i.e., from other
@t{mu4e} views or even completely outside.
If you want the composer to start in a new frame or window, see the variable
@t{mu4e-compose-switch}.
If you want the composer to start in a new frame or window, you can configure
the variable @t{mu4e-compose-switch}; see its docstring for details.
@subsection New message