From cc419fb599ac4d74ffc00e5c4c26e75009ac4911 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 7 Feb 2016 17:56:59 +1100 Subject: [PATCH] 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). --- lisp/gnus/gnus-uu.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.39.2