Function: cua-scroll-down

cua-scroll-down is an interactive and byte-compiled function defined in cua-base.el.gz.

Signature

(cua-scroll-down &optional ARG)

Documentation

Scroll text of current window downward ARG lines; or near full screen if no ARG.

If window cannot be scrolled further, move cursor to top line instead. A near full screen is next-screen-context-lines less than a full screen. Negative ARG means scroll upward. If ARG is the atom -, scroll upward by nearly full screen.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/cua-base.el.gz
(defun cua-scroll-down (&optional arg)
  "Scroll text of current window downward ARG lines; or near full screen if no ARG.
If window cannot be scrolled further, move cursor to top line instead.
A near full screen is `next-screen-context-lines' less than a full screen.
Negative ARG means scroll upward.
If ARG is the atom `-', scroll upward by nearly full screen."
  (interactive "^P")
  (cond
   ((eq arg '-) (cua-scroll-up nil))
   ((< (prefix-numeric-value arg) 0)
    (cua-scroll-up (- (prefix-numeric-value arg))))
   ((bobp)
    (scroll-down arg))  ; signal error
   (t
    (condition-case nil
	(scroll-down arg)
      (beginning-of-buffer (goto-char (point-min)))))))