diff options
| -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 | |||
| 331 | Arg is number of lines to scroll." | 331 | Arg is number of lines to scroll." |
| 332 | (interactive "P") | 332 | (interactive "P") |
| 333 | (if (pos-visible-in-window-p (point-max)) | 333 | (if (pos-visible-in-window-p (point-max)) |
| 334 | (view-exit)) | 334 | (view-exit) |
| 335 | (setq lines | 335 | (setq lines |
| 336 | (if lines (prefix-numeric-value lines) | 336 | (if lines (prefix-numeric-value lines) |
| 337 | (view-scroll-size))) | 337 | (view-scroll-size))) |
| 338 | ; (view-last-command 'View-scroll-lines-forward lines) | 338 | ;; (view-last-command 'View-scroll-lines-forward lines) |
| 339 | (if (>= lines (view-window-size)) | 339 | (if (>= lines (view-window-size)) |
| 340 | (scroll-up nil) | 340 | (scroll-up nil) |
| 341 | (if (>= (- lines) (view-window-size)) | 341 | (if (>= (- lines) (view-window-size)) |
| 342 | (scroll-down nil) | 342 | (scroll-down nil) |
| 343 | (scroll-up lines))) | 343 | (scroll-up lines))) |
| 344 | (cond ((pos-visible-in-window-p (point-max)) | 344 | (cond ((pos-visible-in-window-p (point-max)) |
| 345 | (goto-char (point-max)) | 345 | (goto-char (point-max)) |
| 346 | (recenter -1) | 346 | (recenter -1) |
| 347 | (message (substitute-command-keys | 347 | (message (substitute-command-keys |
| 348 | "End. Type \\[view-exit] to quit viewing.")))) | 348 | "End. Type \\[view-exit] to quit viewing.")))) |
| 349 | (move-to-window-line -1) | 349 | (move-to-window-line -1) |
| 350 | (beginning-of-line)) | 350 | (beginning-of-line))) |
| 351 | 351 | ||
| 352 | (defun View-scroll-lines-forward-set-scroll-size (&optional lines) | 352 | (defun View-scroll-lines-forward-set-scroll-size (&optional lines) |
| 353 | "Scroll forward LINES lines in View mode, setting the \"scroll size\". | 353 | "Scroll forward LINES lines in View mode, setting the \"scroll size\". |