Function: csv-align-set-column-width
csv-align-set-column-width is an interactive and natively compiled
function defined in csv-mode.el.
Signature
(csv-align-set-column-width COLUMN WIDTH)
Documentation
Set the max WIDTH to use for COLUMN.
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-align-set-column-width (column width)
"Set the max WIDTH to use for COLUMN."
(interactive
(let* ((field (or (csv--field-index) 1))
(curwidth (nth (1- field) csv--config-column-widths)))
(list field
(cond
((numberp current-prefix-arg)
current-prefix-arg)
(current-prefix-arg
(read-number (format "Column width (for field %d): " field)
curwidth))
(t (if curwidth nil (csv--ellipsis-width)))))))
(when (eql width csv-align-max-width)
(setq width nil))
(csv-align--set-column column width)
(jit-lock-refontify))