Function: array-copy-down

array-copy-down is an interactive and byte-compiled function defined in array.el.gz.

Signature

(array-copy-down &optional ARG)

Documentation

Copy the current field one array row down.

If optional ARG is given, copy down through ARG array rows.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/array.el.gz
;;; Commands for copying.

(defun array-copy-down (&optional arg)
  "Copy the current field one array row down.
If optional ARG is given, copy down through ARG array rows."
  (interactive "p")
  (let* ((array-buffer-line (array-current-line))
	 (array-buffer-column (current-column))
	 (array-row (or (array-current-row)
			   (error "Cursor is not in a valid array cell")))
	 (array-copy-string (array-field-string)))
    (if (= (abs arg) 1)
	(array-copy-once-vertically arg)
      (array-copy-to-row
       (array--limit-index (+ array-row arg) array-max-row))))
  (array-normalize-cursor))