Variable: minibuffer-completion-table
minibuffer-completion-table is a variable defined in minibuf.c.
Value
nil
Documentation
Alist or obarray used for completion in the minibuffer.
This becomes the ALIST argument to try-completion and all-completions.
The value can also be a list of strings or a hash table.
The value may alternatively be a function, which is given three arguments:
STRING, the current buffer contents;
PREDICATE, the predicate for filtering possible matches;
CODE, which says what kind of things to do.
CODE can be nil, t or lambda:
nil -- return the best completion of STRING, or nil if there is none.
t -- return a list of all possible completions of STRING.
lambda -- return t if STRING is a valid completion as it stands.
Probably introduced at or before Emacs version 28.1.
Source Code
// Defined in /usr/src/emacs/src/minibuf.c
DEFVAR_LISP ("minibuffer-completion-table", Vminibuffer_completion_table,
doc: /* Alist or obarray used for completion in the minibuffer.
This becomes the ALIST argument to `try-completion' and `all-completions'.
The value can also be a list of strings or a hash table.
The value may alternatively be a function, which is given three arguments:
STRING, the current buffer contents;
PREDICATE, the predicate for filtering possible matches;
CODE, which says what kind of things to do.
CODE can be nil, t or `lambda':
nil -- return the best completion of STRING, or nil if there is none.
t -- return a list of all possible completions of STRING.
lambda -- return t if STRING is a valid completion as it stands. */);