diff options
| author | João Távora | 2019-02-12 21:55:34 +0000 |
|---|---|---|
| committer | João Távora | 2019-02-12 21:55:34 +0000 |
| commit | 0daf79c64acce7dc0371e611e090184a90648ec1 (patch) | |
| tree | 1f195242cbc143332065afb41a27feb39ea3abb9 /make-dist | |
| parent | 8b44a4bffcba71da16bf909aae6f550a5374bee1 (diff) | |
| download | emacs-scratch/new-flex-completion-style.tar.gz emacs-scratch/new-flex-completion-style.zip | |
Score flex-style completions according to match tightnessscratch/new-flex-completion-style
The new completion style needs to score completion matches so that we
can use it later on when sorting the completions. This is because, in
the flex style, "foo" can now match "foobar", "frodo" and
"barfromsober" but we probably want "foobar" to appear at the top of
the completion list.
This change makes the new flex completion style add sort-order hints
under the completion string's `completion-style-sort-order' property.
* lisp/minibuffer.el (completion-pcm--hilit-commonality): Propertize
completion with 'completion-pcm-commonality-score.
(completion-flx-all-completions): Propertize completion with
completion-style-sort-order and completion-style-annotation.
Diffstat (limited to 'make-dist')
0 files changed, 0 insertions, 0 deletions