From: Lars Ingebrigtsen Date: Sun, 7 Feb 2016 06:56:59 +0000 (+1100) Subject: Don't inloop gnus-uu-mark-thread on the last thread X-Git-Tag: emacs-25.0.91~59 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cc419fb;p=emacs.git Don't inloop gnus-uu-mark-thread on the last thread * lisp/gnus/gnus-uu.el (gnus-uu-mark-thread): Don't infloop on the final thread in the summary buffer (bug#16666). --- diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index 83f817fd8e9..416567ed285 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el @@ -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))