gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide the thread moves us backwards and so we loop forever.

This commit is contained in:
Teodor Zlatanov 2011-05-20 01:00:46 +00:00 committed by Katsumi Yamaoka
parent e23640bb69
commit b018a6c910
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-05-20 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide
the thread moves us backwards and so we loop forever.
2011-05-19 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading

View file

@ -11569,7 +11569,10 @@ Returns nil if no threads were there to be hidden."
(let ((ol (gnus-make-overlay starteol (point) nil t nil)))
(gnus-overlay-put ol 'invisible 'gnus-sum)
(gnus-overlay-put ol 'evaporate t)))
(gnus-summary-goto-subject article))
(gnus-summary-goto-subject article)
(when (> start (point))
(message "Hiding the thread moved us backwards, aborting!")
(goto-char (point-max))))
(goto-char start)
nil))))