diff options
| author | Teodor Zlatanov | 2011-05-20 01:00:46 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-05-20 01:00:46 +0000 |
| commit | b018a6c910d3b0bce7286485ea74e4925ffe53da (patch) | |
| tree | c519d18afcfdd24ba011bd16be9a84b70f657480 | |
| parent | e23640bb698b291866717eef3e6b4c444b3fc26a (diff) | |
| download | emacs-b018a6c910d3b0bce7286485ea74e4925ffe53da.tar.gz emacs-b018a6c910d3b0bce7286485ea74e4925ffe53da.zip | |
gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide the thread moves us backwards and so we loop forever.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2b51637e3d1..9eebb585c14 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-20 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide | ||
| 4 | the thread moves us backwards and so we loop forever. | ||
| 5 | |||
| 1 | 2011-05-19 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2011-05-19 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading | 8 | * mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 53c2e5e596f..3ec443743df 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -11569,7 +11569,10 @@ Returns nil if no threads were there to be hidden." | |||
| 11569 | (let ((ol (gnus-make-overlay starteol (point) nil t nil))) | 11569 | (let ((ol (gnus-make-overlay starteol (point) nil t nil))) |
| 11570 | (gnus-overlay-put ol 'invisible 'gnus-sum) | 11570 | (gnus-overlay-put ol 'invisible 'gnus-sum) |
| 11571 | (gnus-overlay-put ol 'evaporate t))) | 11571 | (gnus-overlay-put ol 'evaporate t))) |
| 11572 | (gnus-summary-goto-subject article)) | 11572 | (gnus-summary-goto-subject article) |
| 11573 | (when (> start (point)) | ||
| 11574 | (message "Hiding the thread moved us backwards, aborting!") | ||
| 11575 | (goto-char (point-max)))) | ||
| 11573 | (goto-char start) | 11576 | (goto-char start) |
| 11574 | nil)))) | 11577 | nil)))) |
| 11575 | 11578 | ||