1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; Document 'completion-table-with-metadata' in the ELisp manual

* doc/lispref/minibuf.texi (Programmed Completion): Document
'completion-table-with-metadata'.
This commit is contained in:
Eshel Yaron 2025-06-08 21:07:20 +02:00
parent 13a4cd5ed1
commit 4be63c85d2
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618

View file

@ -2123,6 +2123,15 @@ same argument only need to call @var{function} once. This can be useful
when a slow operation is involved, such as calling an external process.
@end defun
@defun completion-table-with-metadata table metadata
This function creates a completion table that behaves like the existing
completion table @var{table}, except with additional metadata, specified
by the completion metadata alist @var{metadata}. If @var{table} already
provides completion metadata, that metadata is merged with
@var{metadata}, giving precedence to @var{metadata} in case an entry
appears both.
@end defun
@node Completion in Buffers
@subsection Completion in Ordinary Buffers
@cindex inline completion