Variable: tabulated-list-entries
tabulated-list-entries is a buffer-local variable defined in
tabulated-list.el.gz.
Documentation
Entries displayed in the current Tabulated List buffer.
This should be either a function, or a list. If a list, each element has the form (ID [DESC1 ... DESCN]), where:
- ID is nil, or a Lisp object uniquely identifying this entry,
which is used to keep the cursor on the "same" entry when
rearranging the list. Comparison is done with equal.
- Each DESC is a column descriptor, one for each column
specified in tabulated-list-format. The descriptor DESC is
one of:
- A string, which is printed as-is, and must not contain any
newlines.
- An image descriptor (a list), which is used to insert an
image (see Info node (elisp) Image Descriptors).
- A list (LABEL . PROPS), which means to use
insert-text-button to insert a text button with label
LABEL and button properties PROPS. LABEL must not contain
any newlines.
If tabulated-list-entries is a function, it is called with no
arguments and must return a list of the above form.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/tabulated-list.el.gz
(defvar-local tabulated-list-entries nil
"Entries displayed in the current Tabulated List buffer.
This should be either a function, or a list.
If a list, each element has the form (ID [DESC1 ... DESCN]),
where:
- ID is nil, or a Lisp object uniquely identifying this entry,
which is used to keep the cursor on the \"same\" entry when
rearranging the list. Comparison is done with `equal'.
- Each DESC is a column descriptor, one for each column
specified in `tabulated-list-format'. The descriptor DESC is
one of:
- A string, which is printed as-is, and must not contain any
newlines.
- An image descriptor (a list), which is used to insert an
image (see Info node `(elisp) Image Descriptors').
- A list (LABEL . PROPS), which means to use
`insert-text-button' to insert a text button with label
LABEL and button properties PROPS. LABEL must not contain
any newlines.
If `tabulated-list-entries' is a function, it is called with no
arguments and must return a list of the above form.")