[gnus git] branch master updated: n0-17-51-g9e72571 =1= * gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide the thread moves us backwards and so we loop forever.

Ted Zlatanov <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  9e72571e781a1c4030be42a8f1acfee8f0313f07 (commit)
      from  baa48a2d567525640b6ec7a8d228f60313efc138 (commit)


- Log -----------------------------------------------------------------
commit 9e72571e781a1c4030be42a8f1acfee8f0313f07
Author: Ted Zlatanov <[email protected]>
Date:   Thu May 19 19:39:21 2011 -0500

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

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 61bfa87..0c856e9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-20  Teodor Zlatanov  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading
diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el
index 53c2e5e..3ec4437 100644
--- a/lisp/gnus-sum.el
+++ b/lisp/gnus-sum.el
@@ -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))))
 

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    5 +++++
 lisp/gnus-sum.el |    5 ++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.