Function: View-goto-percent
View-goto-percent is an interactive and byte-compiled function defined
in view.el.gz.
Signature
(View-goto-percent &optional PERCENT)
Documentation
Move to end (or prefix PERCENT) of buffer in View mode.
Display is centered at point. Also set the mark at the position where point was.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/view.el.gz
;;; Commands for moving around in the buffer.
(defun View-goto-percent (&optional percent)
"Move to end (or prefix PERCENT) of buffer in View mode.
Display is centered at point.
Also set the mark at the position where point was."
(interactive "P")
(push-mark)
(goto-char
(if percent
(+ (point-min)
(floor (* (- (point-max) (point-min)) 0.01
(max 0 (min 100 (prefix-numeric-value percent))))))
(point-max)))
(view-recenter))