aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Távora2019-02-12 21:55:34 +0000
committerJoão Távora2019-02-13 21:23:03 +0000
commitb0e318d27f10b820f1cfad6ea98793c11fc782a4 (patch)
tree7d01ffc214cf54a45fd8cbb654f649d3b5a15450 /src
parente4896fcb1189f6739f228d441b6c50118536e3d8 (diff)
downloademacs-b0e318d27f10b820f1cfad6ea98793c11fc782a4.tar.gz
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 'src')
0 files changed, 0 insertions, 0 deletions