]> git.eshelyaron.com Git - emacs.git/commit
Allow the caller to specify own face on suffix in annotation-function
authorJuri Linkov <juri@linkov.net>
Sat, 30 Jan 2021 19:12:37 +0000 (21:12 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 30 Jan 2021 19:12:37 +0000 (21:12 +0200)
commitb32d4bf682c41e30c46d154093eb3b00dab6b0a5
tree7a57cdaf7ebebafa3f51497da67e70c85c3fdc10
parent42f45e52aacf513abf3dafe1773bf64f04cf5299
Allow the caller to specify own face on suffix in annotation-function

* lisp/minibuffer.el (completion--insert-strings):
Don't add 'completions-annotations' face when the caller
specified own face in annotation-function.
Remove no-op code for 'unless prefix' branch.
(completion-metadata, completion-extra-properties):
Update docs of affixation-function.
Suggested by Clemens <clemera@posteo.net> (bug#45780)

* test/lisp/minibuffer-tests.el: Rename package name from
completion-tests.el to minibuffer-tests.el.
Add new test completion--insert-strings-faces.

* doc/lispref/minibuf.texi (Completion Variables)
(Programmed Completion): Update descriptions of
annotation-function and affixation-function.
doc/lispref/minibuf.texi
etc/NEWS
lisp/minibuffer.el
test/lisp/minibuffer-tests.el