summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2021-01-30 21:12:37 +0200
committerJuri Linkov <juri@linkov.net>2021-01-30 21:12:37 +0200
commitb32d4bf682c41e30c46d154093eb3b00dab6b0a5 (patch)
tree7a57cdaf7ebebafa3f51497da67e70c85c3fdc10 /etc
parent42f45e52aacf513abf3dafe1773bf64f04cf5299 (diff)
downloademacs-b32d4bf682c41e30c46d154093eb3b00dab6b0a5.tar.gz
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 483375e8a2e..29499639e70 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2017,6 +2017,9 @@ directory instead of the default directory.
* Incompatible Lisp Changes in Emacs 28.1
+** 'completions-annotations' face is not used when the caller puts own face.
+This affects the suffix specified by completion 'annotation-function'.
+
** 'set-process-buffer' now updates the process mark.
The mark will be set to point to the end of the new buffer.