(message-get-reply-headers): Ensure that we have progress while deleting duplicates.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 2 Jul 2011 21:01:56 +0000 (23:01 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 2 Jul 2011 21:01:56 +0000 (23:01 +0200)
lisp/ChangeLog
lisp/message.el

index 9bd709f..5a67e43 100644 (file)
@@ -2,6 +2,8 @@
 
        * message.el (message-get-reply-headers): Delete all duplicates,
        instead of the first.
+       (message-get-reply-headers): Ensure that we have progress while
+       deleting duplicates.
 
        * gnus-msg.el (gnus-configure-posting-styles): Get the local
        gnus-posting-style value from the summary buffer to make it easier to
index f6e8fbe..64300e8 100644 (file)
@@ -6798,7 +6798,8 @@ want to get rid of this query permanently.")))
        (while s
          (let ((address (car (pop s))))
            (while (assoc address s)
-             (setq recipients (delq (assoc address s) recipients))))))
+             (setq recipients (delq (assoc address s) recipients)
+                   s (delq (assoc address s) s))))))
 
       ;; Remove hierarchical lists that are contained within each other,
       ;; if message-hierarchical-addresses is defined.