branch: externals/gnorb
commit de0dff53e8aade32ba21b145ff58626d6a87e1d6
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
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
the
connection between the message and whichever Org TODO resulted in
the message being included in this search."
(interactive)
+ (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))
chosen)