Function: csv-insert-column

csv-insert-column is an interactive and natively compiled function defined in csv-mode.el.

Signature

(csv-insert-column FIELD)

Documentation

Insert an empty column at point.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/3gmjnyw9n226b7k7jamikx980vf8267p-emacs-packages-deps/share/emacs/site-lisp/elpa/csv-mode-1.27/csv-mode.el
(defun csv-insert-column (field)
  "Insert an empty column at point."
  (interactive
   (let ((cur (csv--field-index)))
     (list (if (and (csv--eof-p) (not (csv--bof-p))) (1+ cur) cur))))
  (save-excursion
    (goto-char (point-min))
    (while (not (eobp))
      (or (csv-not-looking-at-record)
	  (progn
	    (csv-sort-skip-fields field t)
	    (insert (car csv-separators))))
      (forward-line 1))
    (csv--jit-flush-columns)))