Function: image-eob
image-eob is an interactive and byte-compiled function defined in
image-mode.el.gz.
Signature
(image-eob)
Documentation
Scroll to the bottom-right corner of the image in the current window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defun image-eob ()
"Scroll to the bottom-right corner of the image in the current window."
(interactive)
(let* ((image (image-get-display-property))
(edges (window-inside-edges))
(pixel-edges (window-edges nil t t))
(win-width (- (nth 2 edges) (nth 0 edges)))
(img-width (ceiling (car (image-display-size image))))
(win-height (- (nth 3 pixel-edges) (nth 1 pixel-edges)))
(img-height (ceiling (cdr (image-display-size image t)))))
(image-set-window-hscroll (max 0 (- img-width win-width)))
(image-set-window-vscroll (max 0 (- img-height win-height)))))