]> git.eshelyaron.com Git - emacs.git/commit
Redesign completion style definition mechanism
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 10 Nov 2019 22:59:49 +0000 (22:59 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 10 Nov 2019 22:59:49 +0000 (22:59 +0000)
commit68bce2475a6bbd9f48776f055bc3761efebdfb25
tree84199457989e43fa68df1b63b30c2c1b1dad9ef2
parentafe4969a3b3b38014387a828b66f5dbc3a462a57
Redesign completion style definition mechanism

* lisp/minibuffer.el (completion-styles-alist): Don't define flex
here.
(completion-styles-try-completion)
(completion-styles-all-completions): New generics.
(completion--nth-completion): Use them.  Return a cons of
completions and metadata.
(completion-all-completions): Adjust metadata here.
(completion--flex-adjust-metadata): Return adjusted metadata
entries.
(completion-styles-try-completion flex)
(completion-styles-all-completions flex): Implement.
lisp/minibuffer.el