Function: emerge-scroll-down
emerge-scroll-down is an interactive and byte-compiled function
defined in emerge.el.gz.
Signature
(emerge-scroll-down &optional ARG)
Documentation
Scroll down all three merge buffers, if they are in windows.
With argument N, scroll N lines; otherwise scroll by nearly
the height of the merge window.
C-u - alone as argument scrolls half the height of the merge window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/emerge.el.gz
(defun emerge-scroll-down (&optional arg)
"Scroll down all three merge buffers, if they are in windows.
With argument N, scroll N lines; otherwise scroll by nearly
the height of the merge window.
`C-u -' alone as argument scrolls half the height of the merge window."
(interactive "P")
(emerge-operate-on-windows
#'scroll-down
;; calculate argument to scroll-down
;; if there is an explicit argument
(if (and arg (not (equal arg '-)))
;; use it
(prefix-numeric-value arg)
;; if not, see if we can determine a default amount (the window height)
(let ((merge-window (get-buffer-window emerge-merge-buffer)))
(if (null merge-window)
;; no window, use nil
nil
(let ((default-amount
(- (window-height merge-window) 1 next-screen-context-lines)))
;; the window was found
(if arg
;; C-u as argument means half of default amount
(/ default-amount 2)
;; no argument means default amount
default-amount)))))))