From ed4adcfaa588fd3d7609acef07af9a8ebbcd04b2 Mon Sep 17 00:00:00 2001 From: dickmao Date: Sun, 20 Sep 2020 14:17:53 -0400 Subject: [PATCH] Avoid a 2011 hack that begs off an infinite loop `gnus-summary-position-point' moves point before the hidden thread thus breaking an assumption that `gnus-summary-hide-thread' would only ever move the point forward. * lisp/gnus/gnus-sum.el (gnus-summary-hide-thread): Jump past invisible thread instead of begging off with an out-of-band diagnostic. --- lisp/gnus/gnus-sum.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 8e27a94e5b..c2af93dbed 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -11829,8 +11829,7 @@ gnus-summary-hide-thread (overlay-put ol 'evaporate t))) (gnus-summary-goto-subject article) (when (> start (point)) - (message "Hiding the thread moved us backwards, aborting!") - (goto-char (point-max)))) + (goto-char starteol))) (goto-char start) nil)))) -- 2.26.2