Function: eca-table--get-fontlock-buffer
eca-table--get-fontlock-buffer is a natively compiled function defined
in eca-table.el.
Signature
(eca-table--get-fontlock-buffer)
Documentation
Return a reusable buffer configured for width measurement.
Uses the chat parent mode and markdown-hide-markup to match the actual display rendering.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-table.el
(defun eca-table--get-fontlock-buffer ()
"Return a reusable buffer configured for width measurement.
Uses the chat parent mode and markdown-hide-markup to match
the actual display rendering."
(let ((buf (or (and (buffer-live-p eca-table--fontlock-buffer)
eca-table--fontlock-buffer)
(setq eca-table--fontlock-buffer
(generate-new-buffer " *eca-table-width*"))))
(mode (or eca-chat-parent-mode 'gfm-mode)))
(with-current-buffer buf
(unless (derived-mode-p mode)
(funcall mode))
(setq-local markdown-hide-markup t)
(eca-table--apply-markdown-markup-visibility))
buf))