From 3ff2f9f1ac87369f7f10ffbf769ea3404bae0dec Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 17 May 2024 20:02:39 +0300 Subject: [PATCH] mu4e-draft: invoke mu4e-compose-pre-hook We should invoke it, as documented. --- mu4e/mu4e-draft.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-draft.el b/mu4e/mu4e-draft.el index 64b2f1a6..1a5e015e 100644 --- a/mu4e/mu4e-draft.el +++ b/mu4e/mu4e-draft.el @@ -553,7 +553,8 @@ This is mu4e's version of `message-hidden-headers'.") "Get ready for message composition. PARENT is the parent message, if any." (unless (mu4e-running-p) (mu4e 'background)) ;; start if needed - (mu4e--context-autoswitch parent mu4e-compose-context-policy)) + (mu4e--context-autoswitch parent mu4e-compose-context-policy) + (run-hooks 'mu4e-compose-pre-hook)) (defun mu4e--prepare-draft-headers (compose-type) "Add extra headers for message based on COMPOSE-TYPE."