emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnorb 209b938 324/449: Attach outgoing message check to


From: Stefan Monnier
Subject: [elpa] externals/gnorb 209b938 324/449: Attach outgoing message check to message-sent-hook
Date: Fri, 27 Nov 2020 23:16:04 -0500 (EST)

branch: externals/gnorb
commit 209b938bd285fcfc9509e9c9ddee9d983e1b2dff
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Attach outgoing message check to message-sent-hook
    
    * gnorb-gnus.el (message-sent-hook): For some reason I had
      `gnorb-gnus-check-outgoing-headers' on the message-send-hook. For
      some (other) reason, this stopped working with very recent Gnusae. But
      message-sent-hook works just fine. Why didn't I use this to begin
      with? It's odd, because I spent quite some time trying to figure out
      the best place to put it.
---
 gnorb-gnus.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 8c1e961..e425ca2 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -309,10 +309,7 @@ information about the outgoing message into
                         'gnorb-org-restore-after-send t))
        (setq gnorb-message-org-ids nil)))))
 
-;; This sets the global value, but the hook is made buffer-local in
-;; `gnus-inews-add-send-actions', so this is ignored
-;(add-hook 'message-header-hook 'gnorb-gnus-check-outgoing-headers)
-(add-hook 'message-send-hook 'gnorb-gnus-check-outgoing-headers t)
+(add-hook 'message-sent-hook 'gnorb-gnus-check-outgoing-headers t)
 
 ;;;###autoload
 (defun gnorb-gnus-outgoing-do-todo (&optional arg)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]