]> 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)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jan 2024 10:33:23 +0000 (11:33 +0100)
commit2a076a27c76cbd8a5b5e15237e638df406229b79
treec0e67c79e6e22ba47cfa5da9f3f045741566d7d0
parent54ba5d4f34b9572d3b3177e4b142e89595ad06f3
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.

(cherry picked from commit aff1d53cd466b64ded08d5cf12f83e5746704c07)
doc/lispref/minibuf.texi
etc/NEWS
lisp/icomplete.el
lisp/minibuffer.el
lisp/net/eww.el
test/lisp/minibuffer-tests.el