diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2024-01-10 10:26:19 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2024-01-10 11:12:57 +0100 |
| commit | ab3fbaf31f5fa3bdad270588e34f058e465ac421 (patch) | |
| tree | bd92986b04ebe0de40b324088018e2b94bc5489f /compat.texi | |
| parent | 4eb3d03632d58775f06526fff0d38cf2678e0195 (diff) | |
compat-30: Add extended completion-metadata-get
See Emacs commit 7755f7172748b2d337fa53434c1f678269cc5c45
Diffstat (limited to 'compat.texi')
| -rw-r--r-- | compat.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compat.texi b/compat.texi index 3e02cb2..df8b965 100644 --- a/compat.texi +++ b/compat.texi @@ -3457,6 +3457,19 @@ Here is an example of its use from CC Mode, which prevents a These functions must be called explicitly via @code{compat-call}, since their calling convention or behavior was extended in Emacs 30.1: +@c based on lisp/minibuffer.el +@defun compat-call@ completion-metadata-get metadata prop +Get property @var{prop} from completion @var{metadata}. If the +metadata specifies a completion category, the variables +@code{completion-category-overrides} and +@code{completion-category-defaults} take precedence for +category-specific overrides. If the completion metadata does not +specify the property, the @code{completion-extra-properties} plist is +consulted. Note that the keys of the +@code{completion-extra-properties} plist are keyword symbols, not +plain symbols. +@end defun + @c copied from lispref/lists.texi @defun compat-call@ copy-tree tree &optional vectors-and-records This function returns a copy of the tree @var{tree}. If @var{tree} is a |
