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

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

[elpa] externals/gnorb c13f4df 301/449: Better check for capture cleanup


From: Stefan Monnier
Subject: [elpa] externals/gnorb c13f4df 301/449: Better check for capture cleanup
Date: Fri, 27 Nov 2020 23:15:59 -0500 (EST)

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

    Better check for capture cleanup
    
    * gnorb-gnus.el (gnorb-gnus-capture-abort-cleanup): If
      `gnorb-gnus-capture-always-attach' is non-nil, we should also scrub
      attachments from the aborted heading.
---
 gnorb-gnus.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 2380514..0803809 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -235,8 +235,9 @@ save them into `gnorb-tmp-dir'."
 
 (defun gnorb-gnus-capture-abort-cleanup ()
   (with-no-warnings ; For `org-note-abort'
-   (when (and org-note-abort
-             (org-capture-get :gnus-attachments))
+    (when (and org-note-abort
+              (or gnorb-gnus-capture-always-attach
+                  (org-capture-get :gnus-attachments)))
      (condition-case error
         (progn (org-attach-delete-all)
                (setq abort-note 'clean)



reply via email to

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