Mercurial > emacs
changeset 3450:89cd5536ee81
(View-scroll-lines-forward): If we exit, do nothing else.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 03 Jun 1993 06:34:58 +0000 |
parents | ad455da9b789 |
children | 93757a9629cc |
files | lisp/view.el |
diffstat | 1 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/view.el Thu Jun 03 06:18:18 1993 +0000 +++ b/lisp/view.el Thu Jun 03 06:34:58 1993 +0000 @@ -331,23 +331,23 @@ Arg is number of lines to scroll." (interactive "P") (if (pos-visible-in-window-p (point-max)) - (view-exit)) - (setq lines - (if lines (prefix-numeric-value lines) - (view-scroll-size))) -; (view-last-command 'View-scroll-lines-forward lines) - (if (>= lines (view-window-size)) - (scroll-up nil) - (if (>= (- lines) (view-window-size)) - (scroll-down nil) - (scroll-up lines))) - (cond ((pos-visible-in-window-p (point-max)) - (goto-char (point-max)) - (recenter -1) - (message (substitute-command-keys - "End. Type \\[view-exit] to quit viewing.")))) - (move-to-window-line -1) - (beginning-of-line)) + (view-exit) + (setq lines + (if lines (prefix-numeric-value lines) + (view-scroll-size))) + ;; (view-last-command 'View-scroll-lines-forward lines) + (if (>= lines (view-window-size)) + (scroll-up nil) + (if (>= (- lines) (view-window-size)) + (scroll-down nil) + (scroll-up lines))) + (cond ((pos-visible-in-window-p (point-max)) + (goto-char (point-max)) + (recenter -1) + (message (substitute-command-keys + "End. Type \\[view-exit] to quit viewing.")))) + (move-to-window-line -1) + (beginning-of-line))) (defun View-scroll-lines-forward-set-scroll-size (&optional lines) "Scroll forward LINES lines in View mode, setting the \"scroll size\".