diff options
| author | Richard M. Stallman | 1996-02-04 17:53:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-02-04 17:53:09 +0000 |
| commit | 824832011f9b3cf8f53c5bf2016aad8dc31c7b0b (patch) | |
| tree | 87c8024b367b8c19ef1262d3301b2884b5681c54 | |
| parent | cc39bc3802b833fe4d36ab10478dc9d384aa2f1f (diff) | |
| download | emacs-824832011f9b3cf8f53c5bf2016aad8dc31c7b0b.tar.gz emacs-824832011f9b3cf8f53c5bf2016aad8dc31c7b0b.zip | |
(gnus-update-read-articles): Remove duplicated article numbers on group exit.
| -rw-r--r-- | lisp/gnus.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el index 299abcb257e..7b89b24994f 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el | |||
| @@ -12713,6 +12713,12 @@ Returns whether the updating was successful." | |||
| 12713 | (while (and dormant (< (car dormant) (car active))) | 12713 | (while (and dormant (< (car dormant) (car active))) |
| 12714 | (setq dormant (cdr dormant))) | 12714 | (setq dormant (cdr dormant))) |
| 12715 | (setq unread (sort (append unselected unread) '<)) | 12715 | (setq unread (sort (append unselected unread) '<)) |
| 12716 | ;; Weed out duplicates. | ||
| 12717 | (let ((un unread)) | ||
| 12718 | (while (cdr un) | ||
| 12719 | (if (eq (car un) (car (cdr un))) | ||
| 12720 | (setcdr un (cdr (cdr un))) | ||
| 12721 | (setq un (cdr un))))) | ||
| 12716 | ;; Compute the ranges of read articles by looking at the list of | 12722 | ;; Compute the ranges of read articles by looking at the list of |
| 12717 | ;; unread articles. | 12723 | ;; unread articles. |
| 12718 | (while unread | 12724 | (while unread |