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

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

[elpa] externals/gnorb 69ddfd3 212/449: Delete duplicate org-ids for out


From: Stefan Monnier
Subject: [elpa] externals/gnorb 69ddfd3 212/449: Delete duplicate org-ids for outgoing messages
Date: Fri, 27 Nov 2020 23:15:41 -0500 (EST)

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

    Delete duplicate org-ids for outgoing messages
    
    * lisp/gnorb-gnus.el (gnorb-gnus-outgoing-do-todo): When we look at the
      References: header and collect Org IDs that this message might be
      relevant to, we're going to get a lot of duplicates for long
      conversations, so delete-dups on the ids before we insert the headers.
---
 lisp/gnorb-gnus.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index 1ca0263..a48eacf 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -385,7 +385,7 @@ work."
          (setq rel-headings (gnorb-find-visit-candidates ref-ids)))
        (when rel-headings
          (goto-char (point-min))
-         (dolist (h rel-headings)
+         (dolist (h (delete-dups rel-headings))
            ;; then get the org-ids of those headings, and insert
            ;; them into this message as headers. If the id was
            ;; already present in a header, don't add it again.



reply via email to

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