]> git.eshelyaron.com Git - emacs.git/commit
New command 'minibuffer-set-completion-styles'
authorEshel Yaron <me@eshelyaron.com>
Wed, 10 Jan 2024 09:56:09 +0000 (10:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 19 Jan 2024 10:07:40 +0000 (11:07 +0100)
commit51e1a58b78c2af369bb26999aa61fd2b8896e99f
treef0394e718a9c5a7b3ec8cd2a56527f2bb5f29a95
parent3388f81f25f74726e83b418add33bd97f6801e10
New command 'minibuffer-set-completion-styles'

Add an interactive command for setting completion styles in the
current minibuffer.

* lisp/minibuffer.el (completion-style)
(completion--matching-style, completion-local-styles): New vars.
(completion--styles): Use 'completion-local-styles' when it's non-nil.
(completion--nth-completion): Set 'completion--matching-style' to the
matching completion style.
(completion-styles-affixation, completion-styles-table): New funs.
(minibuffer-set-completion-styles): New command.
(minibuffer-local-completion-map): Bind it.
(minibuffer-completion-help): Set 'completion-style' in the
"*Completions*" buffer.
* lisp/simple.el (completion-setup-function): Keep 'completion-style'.
(completion-list-mode): Display 'completion-style' in mode line.

* doc/emacs/mini.texi (Completion Commands, Completion Styles):
Document new command.

* doc/lispref/minibuf.texi (Completion Commands)
(Completion Variables): Document new command and variable.

* etc/NEWS: Announce new command.
doc/emacs/mini.texi
doc/lispref/minibuf.texi
etc/NEWS
lisp/minibuffer.el
lisp/simple.el