(gnus-article-next-page): Respect `scroll-margin' when moving point to the
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 11 Aug 2008 22:54:25 +0000 (22:54 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 11 Aug 2008 22:54:25 +0000 (22:54 +0000)
 bottom of the window in order to avoid recentering.

lisp/ChangeLog
lisp/gnus-art.el

index 42f93aa..1e7c40a 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-11  Ralf Angeli  <angeli@caeruleus.net>
+
+       * gnus-art.el (gnus-article-next-page): Respect `scroll-margin' when
+       moving point to the bottom of the window in order to avoid recentering.
+
 2008-08-11  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * lpath.el: Bind scroll-margin for XEmacs 21.4 and SXEmacs.
index a3e0285..a8ca343 100644 (file)
@@ -6113,7 +6113,7 @@ If given a numerical ARG, move forward ARG pages."
 If end of article, return non-nil.  Otherwise return nil.
 Argument LINES specifies lines to be scrolled up."
   (interactive "p")
-  (move-to-window-line -1)
+  (move-to-window-line (if (featurep 'xemacs) -1 (- -1 scroll-margin)))
   (if (and (not (and gnus-article-over-scroll
                     (> (count-lines (window-start) (point-max))
                        (if (featurep 'xemacs)