* gnus-sum.el (gnus-summary-insert-new-articles): Clean up slightly.
authorLars Magne Ingebrigtsen <larsi@tmp-office.(none)>
Sun, 31 Jul 2011 15:10:59 +0000 (17:10 +0200)
committerLars Magne Ingebrigtsen <larsi@tmp-office.(none)>
Sun, 31 Jul 2011 15:10:59 +0000 (17:10 +0200)
lisp/ChangeLog
lisp/gnus-sum.el

index 4a7576c..d5a40be 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-31  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-sum.el (gnus-summary-insert-new-articles): Clean up slightly.
+
 2011-07-29  Daniel Dehennin  <daniel.dehennin@baby-gnu.org>
 
        * mm-decode.el (mm-dissect-buffer): Add a default content-disposition
index 5917c9d..6eadf05 100644 (file)
@@ -12851,26 +12851,25 @@ If ALL is a number, fetch this number of articles."
 (defun gnus-summary-insert-new-articles ()
   "Insert all new articles in this group."
   (interactive)
-  (prog1
-      (let ((old (sort (mapcar 'car gnus-newsgroup-data) '<))
-           (old-high gnus-newsgroup-highest)
-           (nnmail-fetched-sources (list t))
-           i new)
-       (setq gnus-newsgroup-active
-             (gnus-copy-sequence
-              (gnus-activate-group gnus-newsgroup-name 'scan)))
-       (setq i (cdr gnus-newsgroup-active)
-             gnus-newsgroup-highest i)
-       (while (> i old-high)
-         (push i new)
-         (decf i))
-       (if (not new)
-           (message "No gnus is bad news")
-         (gnus-summary-insert-articles new)
-         (setq gnus-newsgroup-unreads
-               (gnus-sorted-nunion gnus-newsgroup-unreads new))
-         (gnus-summary-limit (gnus-sorted-nunion old new))))
-    (gnus-summary-position-point)))
+  (let ((old (sort (mapcar 'car gnus-newsgroup-data) '<))
+       (old-high gnus-newsgroup-highest)
+       (nnmail-fetched-sources (list t))
+       i new)
+    (setq gnus-newsgroup-active
+         (gnus-copy-sequence
+          (gnus-activate-group gnus-newsgroup-name 'scan)))
+    (setq i (cdr gnus-newsgroup-active)
+         gnus-newsgroup-highest i)
+    (while (> i old-high)
+      (push i new)
+      (decf i))
+    (if (not new)
+       (message "No gnus is bad news")
+      (gnus-summary-insert-articles new)
+      (setq gnus-newsgroup-unreads
+           (gnus-sorted-nunion gnus-newsgroup-unreads new))
+      (gnus-summary-limit (gnus-sorted-nunion old new))))
+  (gnus-summary-position-point))
 
 ;;; Bookmark support for Gnus.
 (declare-function bookmark-make-record-default