[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `completion-in-region'
From: |
Stefan Monnier |
Subject: |
Re: `completion-in-region' |
Date: |
Sun, 11 Apr 2010 16:49:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> The question is whether matching like this should be the default. IMO, no.
It's not even a question.
Stefan
PS: I could imagine using such a matching scheme by default at some
point in the future, but it would need to be significantly refined.
The main problem is that by turning "abc" into a global like "*a*b*c" we
tend to get many matches of variable quality. So we'd need some way to
compare the quality and only keep the ones that have the best quality.
At least that's what I try to do in my "forgive" completion-style (don't
look for it, I don't think I've sent it out anywhere yet) which allows
"abc" to match not only "albacore" but also "yacc" (i.e. it can
insert&delete chars): the ability to delete chars means that
fundamentally any input string can match any completion candidate, so
there it's pretty obvious that you need to sort the candidates by "how
close" they are to the input string.
Note that the current default setting already does (a very limited form
of) this kind of "quality sorting" since it only considers
partial-completion matches if there aren't any prefix completions.
- `completion-in-region', Leo, 2010/04/06
- Re: `completion-in-region', Stefan Monnier, 2010/04/08
- Re: `completion-in-region', Leo, 2010/04/11
- Re: `completion-in-region', Stefan Monnier, 2010/04/11
- RE: `completion-in-region', Drew Adams, 2010/04/11
- Re: `completion-in-region', Stefan Monnier, 2010/04/11
- RE: `completion-in-region', Drew Adams, 2010/04/11
- Re: `completion-in-region',
Stefan Monnier <=
- RE: `completion-in-region', Drew Adams, 2010/04/11
- Re: `completion-in-region', Lennart Borgman, 2010/04/11
- Re: `completion-in-region', Stefan Monnier, 2010/04/11
- Re: `completion-in-region', Lennart Borgman, 2010/04/11
- Re: `completion-in-region', Stefan Monnier, 2010/04/11
- Re: `completion-in-region', Lennart Borgman, 2010/04/12
- Re: `completion-in-region', Stefan Monnier, 2010/04/12
- Re: `completion-in-region', Davis Herring, 2010/04/12
- RE: `completion-in-region', Drew Adams, 2010/04/11
- Re: `completion-in-region', Leo, 2010/04/12