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

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

[elpa] externals/gnorb 3877b2d 275/449: Still didn't have incoming-do-to


From: Stefan Monnier
Subject: [elpa] externals/gnorb 3877b2d 275/449: Still didn't have incoming-do-todo logic right
Date: Fri, 27 Nov 2020 23:15:54 -0500 (EST)

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

    Still didn't have incoming-do-todo logic right
    
    * gnorb-gnus.el (gnorb-gnus-incoming-do-todo): Make sure nil value
      propagates correctly.
---
 gnorb-gnus.el | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 478c14c..7cf3002 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -546,13 +546,11 @@ to t (it is, by default)."
                   (gnorb-delete-association msg-id h))))
             related-headings))
       (if (catch 'target
-           (mapcar
-            (lambda (h)
-              (when (yes-or-no-p
-                     (format "Trigger action on %s"
-                             (gnorb-pretty-outline h)))
-                (throw 'target (setq targ h))))
-            related-headings))
+           (dolist (h related-headings nil)
+            (when (yes-or-no-p
+                   (format "Trigger action on %s"
+                           (gnorb-pretty-outline h)))
+              (throw 'target (setq targ h)))))
          (gnorb-trigger-todo-action arg targ)
        (setq targ (org-refile-get-location
                    "Trigger heading" nil t))



reply via email to

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