Function: array-copy-forward

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

Signature

(array-copy-forward &optional ARG)

Documentation

Copy the current field one array column to the right.

If optional ARG is given, copy through ARG array columns to the right.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/array.el.gz
(defun array-copy-forward (&optional arg)
  "Copy the current field one array column to the right.
If optional ARG is given, copy through ARG array columns to the right."
  (interactive "p")
  (let* ((array-buffer-line (array-current-line))
	 (array-buffer-column (current-column))
	 (array-column (or (array-current-column)
			   (error "Cursor is not in a valid array cell")))
	 (array-copy-string (array-field-string)))
    (if (= (abs arg) 1)
	(array-copy-once-horizontally arg)
      (array-copy-to-column
       (array--limit-index (+ array-column arg) array-max-column))))
  (array-normalize-cursor))