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

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

[elpa] externals/gnorb dad66e6 131/449: Better separate triggering for s


From: Stefan Monnier
Subject: [elpa] externals/gnorb dad66e6 131/449: Better separate triggering for sent/received msgs
Date: Fri, 27 Nov 2020 23:15:24 -0500 (EST)

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

    Better separate triggering for sent/received msgs
    
    lisp/gnorb-gnus.el: (gnorb-gnus-incoming-do-todo) The variable
                    `gnorb-gnus-sending-message-info always holds info
                    about the last sent message. If the trigger process
                    sees that, it assumes we're triggering from that
                    sent message. So blank out
                    `gnorb-gnus-sending-message-info' while we're
                    triggering from an incoming message.
---
 lisp/gnorb-gnus.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index 8d76b5a..fcb0dff 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -420,6 +420,9 @@ to t (it is, by default)."
   (call-interactively 'org-store-link)
   (setq gnorb-org-window-conf (current-window-configuration))
   (let* ((org-refile-targets gnorb-gnus-trigger-refile-targets)
+        ;; otherwise `gnorb-trigger-todo-action' will think we
+        ;; started from an outgoing message
+        (gnorb-gnus-sending-message-info nil)
         (ref-msg-ids
          (with-current-buffer gnus-original-article-buffer
            (message-narrow-to-headers-or-head)



reply via email to

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