]> git.eshelyaron.com Git - emacs.git/commit
Support more metadata properties in completion-extra-properties (bug#68214)
authorJuri Linkov <juri@linkov.net>
Tue, 9 Jan 2024 17:57:50 +0000 (19:57 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 9 Jan 2024 17:57:50 +0000 (19:57 +0200)
commitaff1d53cd466b64ded08d5cf12f83e5746704c07
treead65a89f8e6f32e84501f32dd5f3cdb24d24703e
parent29e59b835c86e1ebac12adcb28ab7e1d0c275b2f
Support more metadata properties in completion-extra-properties (bug#68214)

* doc/lispref/minibuf.texi (Completion Variables): Add
to the table of completion-extra-properties new items:
`group-function', `display-sort-function', `cycle-sort-function'.

* lisp/icomplete.el (icomplete--augment): Remove unnecessary
plist-get from completion-extra-properties since now
completion-metadata-get does this.

* lisp/minibuffer.el (completion-metadata-get): Use plist-get to
get prop from completion-extra-properties and cache the keyword.
Thanks to Daniel Mendler <mail@daniel-mendler.de>.
(completion-extra-properties): Mention new properties in docstring.
(minibuffer-completion-help): Remove unnecessary
plist-get from completion-extra-properties since now
completion-metadata-get does this.

* lisp/net/eww.el (eww-switch-to-buffer):
* test/lisp/minibuffer-tests.el (completions-affixation-navigation-test):
Unquote lambda in completion-extra-properties.
doc/lispref/minibuf.texi
etc/NEWS
lisp/icomplete.el
lisp/minibuffer.el
lisp/net/eww.el
test/lisp/minibuffer-tests.el