diff options
author | João Távora <joaotavora@gmail.com> | 2019-02-12 21:55:34 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2019-02-13 21:23:03 +0000 |
commit | b0e318d27f10b820f1cfad6ea98793c11fc782a4 (patch) | |
tree | 7d01ffc214cf54a45fd8cbb654f649d3b5a15450 /test/lisp/emacs-lisp/text-property-search-tests.el | |
parent | e4896fcb1189f6739f228d441b6c50118536e3d8 (diff) | |
download | emacs-b0e318d27f10b820f1cfad6ea98793c11fc782a4.tar.gz emacs-b0e318d27f10b820f1cfad6ea98793c11fc782a4.tar.bz2 emacs-b0e318d27f10b820f1cfad6ea98793c11fc782a4.zip |
Score flex-style completions according to match tightness
The new completion style needs to score completion matches so that we
can use it later on when sorting the completions. This is because
"foo" can flex-match "foobar", "frodo" and "barfromsober" but we
probably want "foobar" to appear at the top of the completion list.
This change introduces a scoring formula and adds scoring hints in the
candidate string's `completion-score' property.
* lisp/minibuffer.el (completion-pcm--hilit-commonality): Propertize
completion with 'completion-score
(flex-score-falloff): New variable.
Diffstat (limited to 'test/lisp/emacs-lisp/text-property-search-tests.el')
0 files changed, 0 insertions, 0 deletions