(gnus-topic-read-group): If after the last group, select the last group.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 11 Oct 2010 10:00:21 +0000 (12:00 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 11 Oct 2010 10:00:21 +0000 (12:00 +0200)
lisp/ChangeLog
lisp/gnus-topic.el

index eb3f184..d37a7ed 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-topic.el (gnus-topic-read-group): If after the last group,
+       select the last group.
+
 2010-10-11  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-int.el (gnus-run-hook-with-args): Autoload from gnus-util.el.
index efa543f..e4afc7c 100644 (file)
@@ -1255,6 +1255,8 @@ that group.
 
 If performed over a topic line, toggle folding the topic."
   (interactive "P")
+  (when (and (eobp) (not (gnus-group-group-name)))
+    (forward-line -1))
   (if (gnus-group-topic-p)
       (let ((gnus-group-list-mode
             (if all (cons (if (numberp all) all 7) t) gnus-group-list-mode)))