[Top][All Lists]

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

[elpa] externals/gnorb de0dff5 274/449: Protection for message disassoci

From: Stefan Monnier
Subject: [elpa] externals/gnorb de0dff5 274/449: Protection for message disassociation
Date: Fri, 27 Nov 2020 23:15:54 -0500 (EST)

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

    Protection for message disassociation
    * nngnorb.el (gnorb-summary-disassociate-message): Message must be
      displayed before it can be successfully disassociated.
 nngnorb.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/nngnorb.el b/nngnorb.el
index bce7600..eb55ee3 100644
--- a/nngnorb.el
+++ b/nngnorb.el
@@ -304,6 +304,9 @@ This is used in a Gnorb-created *Summary* buffer to remove 
 connection between the message and whichever Org TODO resulted in
 the message being included in this search."
+  (unless (get-buffer-window gnus-article-buffer t)
+    (gnus-summary-display-article
+     (gnus-summary-article-number)))
   (let* ((msg-id (gnus-fetch-original-field "message-id"))
         (org-ids (gnus-registry-get-id-key msg-id 'gnorb-ids))

reply via email to

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