]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't inloop gnus-uu-mark-thread on the last thread
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2016 06:56:59 +0000 (17:56 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Feb 2016 06:56:59 +0000 (17:56 +1100)
* lisp/gnus/gnus-uu.el (gnus-uu-mark-thread): Don't infloop on the
final thread in the summary buffer (bug#16666).

lisp/gnus/gnus-uu.el

index 83f817fd8e9904d4d43acafaf117ebec31314eb9..416567ed28571bebebdcabc4cf0d2f0d2bba9848 100644 (file)
@@ -641,9 +641,9 @@ When called interactively, prompt for REGEXP."
   (interactive)
   (gnus-save-hidden-threads
     (let ((level (gnus-summary-thread-level)))
-      (while (and (gnus-summary-set-process-mark
-                  (gnus-summary-article-number))
+      (while (and (gnus-summary-set-process-mark (gnus-summary-article-number))
                  (zerop (forward-line 1))
+                 (not (eobp))
                  (> (gnus-summary-thread-level) level)))))
   (gnus-summary-position-point))