(View-scroll-lines-forward):
authorRichard M. Stallman <rms@gnu.org>
Tue, 23 Nov 1993 08:31:03 +0000 (08:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 23 Nov 1993 08:31:03 +0000 (08:31 +0000)
Allow scrolling backward at the end of the buffer.

lisp/view.el

index 4dad422..1ecd687 100644 (file)
@@ -332,7 +332,10 @@ mark ring."
 No arg means whole window full, or number of lines set by \\[View-scroll-lines-forward-set-scroll-size].
 Arg is number of lines to scroll."
   (interactive "P")
-  (if (pos-visible-in-window-p (point-max))
+  (if (and (pos-visible-in-window-p (point-max))
+          ;; Allow scrolling backward at the end of the buffer.
+          (or (null lines)
+              (> lines 0)))
       (view-exit)
     (setq lines
          (if lines (prefix-numeric-value lines)