]> git.eshelyaron.com Git - emacs.git/commit
Add 'completions-detailed' to add prefix/suffix with 'affixation-function'
authorJuri Linkov <juri@linkov.net>
Wed, 25 Nov 2020 08:46:59 +0000 (10:46 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 25 Nov 2020 08:46:59 +0000 (10:46 +0200)
commit3b740591b0a1d0e7a24be38471499ecace96936b
tree32d0d26182f4e29ef8291550b76da9c42b6a00d3
parentd7a580c7eb189c0b0daf131f9a1f3c8c7fe5f196
Add 'completions-detailed' to add prefix/suffix with 'affixation-function'

* doc/lispref/minibuf.texi (Completion Variables)
(Programmed Completion): Add affixation-function.

* lisp/help-fns.el (help--symbol-completion-table-affixation): New function.
(help--symbol-completion-table): Set affixation-function when
completions-detailed is non-nil.

* lisp/minibuffer.el (completion-metadata): Add affixation-function
to docstring.
(completions-annotations): Inherit from shadow with italic.
(completions-detailed): New defcustom.
(completion--insert-strings): Count string-width on all strings in
completion list.  Insert prefix and suffix.
(completion-extra-properties): Add affixation-function to docstring.
(minibuffer-completion-help): Call affixation-function.
(minibuffer-default-prompt-format): Move down closer to its use.

https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg00613.html
doc/lispref/minibuf.texi
etc/NEWS
lisp/help-fns.el
lisp/minibuffer.el