Function: table-fixed-width-mode

table-fixed-width-mode is an autoloaded, interactive and byte-compiled function defined in table.el.gz.

Signature

(table-fixed-width-mode &optional ARG)

Documentation

Cell width is fixed when this is non-nil.

Normally it should be nil for allowing automatic cell width expansion that widens a cell when it is necessary. When non-nil, typing in a cell does not automatically expand the cell width. A word that is too long to fit in a cell is chopped into multiple lines. The chopped location is indicated by table-word-continuation-char. This variable's value can be toggled by M-x table-fixed-width-mode (table-fixed-width-mode) at run-time.

This is a minor mode. If called interactively, toggle the Table-Fixed-Width mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate table-fixed-width-mode(var)/table-fixed-width-mode(fun).

The mode's hook is called both when the mode is enabled and when it is disabled.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/table.el.gz
;;;###autoload
(define-minor-mode table-fixed-width-mode
  "Cell width is fixed when this is non-nil.
Normally it should be nil for allowing automatic cell width expansion
that widens a cell when it is necessary.  When non-nil, typing in a
cell does not automatically expand the cell width.  A word that is too
long to fit in a cell is chopped into multiple lines.  The chopped
location is indicated by `table-word-continuation-char'.  This
variable's value can be toggled by \\[table-fixed-width-mode] at
run-time."
  :tag "Fix Cell Width"
  :group 'table
  (table--finish-delayed-tasks)
  (table--update-cell-face))