2003-02-12 Michael Shields <shields@msrl.com>
authorKai Grossjohann <kgrossjo@eu.uu.net>
Wed, 12 Feb 2003 20:32:52 +0000 (20:32 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Wed, 12 Feb 2003 20:32:52 +0000 (20:32 +0000)
* gnus-sum.el (gnus-article-goto-next-page,
gnus-article-goto-prev-page): Call gnus-summary-*-page, instead of
relying on the summary bindings of `n' and `p'.

lisp/ChangeLog
lisp/gnus-art.el

index 58fcbcd..fe0285e 100644 (file)
@@ -1,3 +1,9 @@
+2003-02-12  Michael Shields  <shields@msrl.com>
+
+       * gnus-sum.el (gnus-article-goto-next-page,
+       gnus-article-goto-prev-page): Call gnus-summary-*-page, instead of
+       relying on the summary bindings of `n' and `p'.
+
 2003-02-12  Michael Shields  <shields@msrl.com>
 
        * gnus-art.el (gnus-article-only-boring-p): New.
index cd23f29..ad82270 100644 (file)
@@ -4686,15 +4686,14 @@ If given a numerical ARG, move forward ARG pages."
 (defun gnus-article-goto-next-page ()
   "Show the next page of the article."
   (interactive)
-  (when (gnus-article-next-page)
-    (goto-char (point-min))
-    (gnus-article-read-summary-keys nil (gnus-character-to-event ?n))))
+  (gnus-eval-in-buffer-window gnus-summary-buffer
+    (gnus-summary-next-page)))
 
 (defun gnus-article-goto-prev-page ()
   "Show the next page of the article."
   (interactive)
-  (if (bobp) (gnus-article-read-summary-keys nil (gnus-character-to-event ?p))
-    (gnus-article-prev-page nil)))
+  (gnus-eval-in-buffer-window gnus-summary-buffer
+    (gnus-summary-prev-page)))
 
 (defun gnus-article-next-page (&optional lines)
   "Show the next page of the current article.