Function: eca-table-align
eca-table-align is a natively compiled function defined in
eca-table.el.
Signature
(eca-table-align FROM END)
Documentation
Align all markdown tables between FROM and END.
Padding grows the buffer, so END is followed with a marker rather than kept as a fixed position. Tables are rewritten even when the text is read-only, as the chat history is.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-table.el
;; Public API -------------------------------------------------------------
(defun eca-table-align (from end)
"Align all markdown tables between FROM and END.
Padding grows the buffer, so END is followed with a marker rather
than kept as a fixed position. Tables are rewritten even when the
text is read-only, as the chat history is."
(let ((inhibit-read-only t)
(end (copy-marker end)))
(unwind-protect
(save-excursion
(goto-char from)
(while (and (< (point) end)
(re-search-forward markdown-table-line-regexp end t))
(when (markdown-table-at-point-p)
(markdown-table-align)
(eca-table--align-at-point)
;; Move past this table to avoid re-processing
(goto-char (markdown-table-end)))))
(set-marker end nil))))