Function: doc-view-previous-line-or-previous-page
doc-view-previous-line-or-previous-page is an interactive and
byte-compiled function defined in doc-view.el.gz.
Signature
(doc-view-previous-line-or-previous-page &optional ARG)
Documentation
Scroll downward by ARG lines if possible, else goto previous page.
When doc-view-continuous is non-nil, scrolling a line downward
at the top edge of the page moves to the previous page.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defun doc-view-previous-line-or-previous-page (&optional arg)
"Scroll downward by ARG lines if possible, else goto previous page.
When `doc-view-continuous' is non-nil, scrolling a line downward
at the top edge of the page moves to the previous page."
(interactive "p")
(if doc-view-continuous
(let ((hscroll (window-hscroll))
(cur-page (doc-view-current-page)))
(when (= (window-vscroll nil t) (image-previous-line arg))
(doc-view-previous-page)
(when (/= cur-page (doc-view-current-page))
(image-eob)
(image-bol 1))
(set-window-hscroll (selected-window) hscroll)))
(image-previous-line arg)))