From 7d570b9148b87a3af671ee5bf58be31eabbfef8c Mon Sep 17 00:00:00 2001 From: Justin Silverman Date: Wed, 4 Dec 2024 14:02:27 -0500 Subject: [PATCH] fixes #200 remove undo from message-sent-hook as it was causing an error and for html drafts to be sent after successful message sending (unintended behavior). Also discussed in #182 where the hook was suspected to be causing problems https://github.com/jeremy-compostella/org-msg/issues/182 --- org-msg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-msg.el b/org-msg.el index 558590c..1931c78 100644 --- a/org-msg.el +++ b/org-msg.el @@ -1553,7 +1553,7 @@ Type \\[org-msg-attach] to call the dispatcher for attachment \\{org-msg-edit-mode-map}" (setq-local message-sent-message-via nil) (add-hook 'message-send-hook 'org-msg-prepare-to-send nil t) - (add-hook 'message-sent-hook 'undo t t) + ;; (add-hook 'message-sent-hook 'undo t t) (add-hook 'completion-at-point-functions 'message-completion-function nil t) (cond ((message-mail-alias-type-p 'abbrev) (mail-abbrevs-setup)) ((message-mail-alias-type-p 'ecomplete) (ecomplete-setup)))