Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 jeremy-compostella#182 where the hook was suspected to be causing problems
jeremy-compostella#182
  • Loading branch information
jsilve24 committed Dec 4, 2024
1 parent 59e2042 commit 7d570b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org-msg.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 7d570b9

Please sign in to comment.