(gnus-article-next-page): Change last-line-displayed behaviour.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 26 Jan 2011 23:11:16 +0000 (15:11 -0800)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 26 Jan 2011 23:11:16 +0000 (15:11 -0800)
When the last line of the article is displayed, scroll down once more
instead of going to the next article at once.

This makes for more SPC-ing, but since you normally don't know whether
an article is over or not in this situation, this is perhaps less
surprising and annoying behaviour.

lisp/ChangeLog
lisp/gnus-art.el

index 2376402..4c93ce0 100644 (file)
@@ -1,5 +1,9 @@
 2011-01-26  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-art.el (gnus-article-next-page): When the last line of the
+       article is displayed, scroll down once more instead of going to the
+       next article at once.
+
        * shr.el: Revert change that made headings use different-sized faces.
        The Emacs display engine isn't advanced enough that, for instance,
        tables can comfortably use differntly-sized faces.
index 0cf2d2f..110e5c8 100644 (file)
@@ -6267,7 +6267,7 @@ Argument LINES specifies lines to be scrolled up."
           (save-excursion
             (end-of-line)
             (and (pos-visible-in-window-p)     ;Not continuation line.
-                 (>= (1+ (point)) (point-max))))) ;Allow for trailing newline.
+                 (>= (point) (point-max)))))
       ;; Nothing in this page.
       (if (or (not gnus-page-broken)
              (save-excursion