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

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

[elpa] externals/gnorb 84ff7a7 294/449: Don't let attach errors derail t


From: Stefan Monnier
Subject: [elpa] externals/gnorb 84ff7a7 294/449: Don't let attach errors derail the trigger process
Date: Fri, 27 Nov 2020 23:15:58 -0500 (EST)

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

    Don't let attach errors derail the trigger process
    
    * gnorb-utils.el (gnorb-trigger-todo-action): There's something highly
      suspicious about how attachment errors affect the whole process. They
      don't actually seem to surface as full errors, but they do cancel out
      the rest of the trigger process. This may address that.
---
 gnorb-utils.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnorb-utils.el b/gnorb-utils.el
index da6d1ed..7e00f0d 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -240,7 +240,9 @@ agenda. Then let the user choose an action from the value of
           (lambda (a)
             (format "Attach %s to heading? "
                     (file-name-nondirectory a)))
-          (lambda (a) (org-attach-attach a nil 'mv))
+          (lambda (a)
+            (with-demoted-errors
+                (org-attach-attach a nil 'mv)))
           gnorb-gnus-capture-attachments
           '("file" "files" "attach")))
       (setq gnorb-gnus-capture-attachments nil))



reply via email to

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