# HG changeset patch # User Richard M. Stallman # Date 823456389 0 # Node ID 6903f7c540834497d486bb1df7215ae98ac588d7 # Parent 7f49c41db1e81ecf753f3c69a9217673a7b276e0 (gnus-update-read-articles): Remove duplicated article numbers on group exit. diff -r 7f49c41db1e8 -r 6903f7c54083 lisp/gnus.el --- a/lisp/gnus.el Sun Feb 04 05:52:54 1996 +0000 +++ b/lisp/gnus.el Sun Feb 04 17:53:09 1996 +0000 @@ -12713,6 +12713,12 @@ (while (and dormant (< (car dormant) (car active))) (setq dormant (cdr dormant))) (setq unread (sort (append unselected unread) '<)) + ;; Weed out duplicates. + (let ((un unread)) + (while (cdr un) + (if (eq (car un) (car (cdr un))) + (setcdr un (cdr (cdr un))) + (setq un (cdr un))))) ;; Compute the ranges of read articles by looking at the list of ;; unread articles. (while unread