From 181f17a6f4627b62c98c70e63439ab5feb61c3c4 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 3 Aug 2021 02:36:09 +0800 Subject: [PATCH] fix(mu4e): account for signature change in v1.6 Mu4e 1.6 changes the signature of `mu4e-draft-open'. Since we don't care about the args replace funcall with apply to make sure it's happy no matter how many args it expected. --- modules/email/mu4e/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/email/mu4e/config.el b/modules/email/mu4e/config.el index 81b0dcbb6..9893f3f80 100644 --- a/modules/email/mu4e/config.el +++ b/modules/email/mu4e/config.el @@ -282,11 +282,11 @@ Usefull for affecting HTML export config.") (+mu4e-compose-org-msg-handle-toggle (/= 1 (or toggle-p 0))) (funcall orig-fn)) - (defadvice! +mu4e-draft-open-signature-a (orig-fn compose-type &optional msg) + (defadvice! +mu4e-draft-open-signature-a (orig-fn &rest args) "Prevent `mu4e-compose-signature' from being used with `org-msg-mode'." :around #'mu4e-draft-open (let ((mu4e-compose-signature (unless org-msg-mode mu4e-compose-signature))) - (funcall orig-fn compose-type msg))) + (apply orig-fn args))) (map! :map org-msg-edit-mode-map "TAB" #'org-msg-tab) ; only bound by default