]> 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>
Wed, 10 Jan 2024 10:29:16 +0000 (11:29 +0100)
commit1e3c3a1b0690e10daddf159595acf632976d1e0a
tree9094ef408373a35955d65e7bdbece26c194d7d46
parentccf0de0dda3d964d39bc052a1f0ae759126dec00
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