Function: vtable--compute-cached-line
vtable--compute-cached-line is a byte-compiled function defined in
vtable.el.gz.
Signature
(vtable--compute-cached-line TABLE OBJECT)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/vtable.el.gz
(defun vtable--compute-cached-line (table object)
(seq-map-indexed
(lambda (column index)
(let* ((value (vtable--get-value object index column table))
(string (if (stringp value)
(copy-sequence value)
(format "%s" value))))
(add-face-text-property 0 (length string)
(vtable-face table)
t string)
;; We stash the computed width and string here -- if there are
;; no formatters/displayers, we'll be using the string, and
;; then won't have to recreate it.
(list value (string-pixel-width string (vtable-buffer table)) string)))
(vtable-columns table)))