Function: tabulated-list-widen-current-column

tabulated-list-widen-current-column is an interactive and byte-compiled function defined in tabulated-list.el.gz.

Signature

(tabulated-list-widen-current-column &optional N)

Documentation

Widen the current tabulated-list column by N chars.

Interactively, N is the prefix numeric argument, and defaults to
1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/tabulated-list.el.gz
(defun tabulated-list-widen-current-column (&optional n)
  "Widen the current tabulated-list column by N chars.
Interactively, N is the prefix numeric argument, and defaults to
1."
  (interactive "p")
  (let ((start (current-column))
        (nb-cols (length tabulated-list-format))
        (col-nb 0)
        (total-width 0)
        (found nil)
        col-width)
    (while (and (not found)
                (< col-nb nb-cols))
      (if (> start
             (setq total-width
                   (+ total-width
                      (setq col-width
                            (cadr (aref tabulated-list-format
                                        col-nb))))))
          (setq col-nb (1+ col-nb))
        (setq found t)
        (setf (cadr (aref tabulated-list-format col-nb))
              (max 1 (+ col-width n)))
        (tabulated-list-print t)
        (tabulated-list-init-header)))))