diff options
| author | Richard M. Stallman <rms@gnu.org> | 1993-06-03 06:34:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1993-06-03 06:34:58 +0000 |
| commit | ca160bc46d8af1cfbfdd5f33304edeffcfa09c1f (patch) | |
| tree | b3d1f49e2e256778b2df4ae32b8ae4e6c2d0c7b0 | |
| parent | 08f7aa3edbf2e835111ca52f30b9063a40f306d9 (diff) | |
| download | emacs-ca160bc46d8af1cfbfdd5f33304edeffcfa09c1f.tar.gz | |
(View-scroll-lines-forward): If we exit, do nothing else.
| -rw-r--r-- | lisp/view.el | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lisp/view.el b/lisp/view.el index 4629b4fcd6a..c510d419fa1 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -331,23 +331,23 @@ No arg means whole window full, or number of lines set by \\[View-scroll-lines-f 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\". |
