[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Completing with anything
From: |
Stefan Monnier |
Subject: |
Re: Completing with anything |
Date: |
Fri, 18 Mar 2011 14:16:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> For more complex cases, there is also the issue of what to do when some
>> parts of the completion are case-sensitive and other parts aren't
>> (e.g. completion of case-sensitive envvars in case-insensitive file
>> names), although this is less important for completion-at-point than
>> for minibuffer completion since you don't have to return a table that
>> covers the completion of the whole field (composed of file names and
>> env-vars, for example), and instead you can just limit the completion to
>> the particular subfield.
> There's still something wrong to me in the solution provided by Tassilo.
> It works fine, but it is returning a function to bypass the usual
> completion code completion code. Ignoring case, like doing smarter
> completion (e.g. where the typed prefix does not match the returned
> choices at all) is something that is very useful.
> Therefore I wonder if we should either:
> - Edit `completion-at-point-functions' docstring to remove the word
> "discouraged" in that sentence:
> "or a function of no argument to perform completion (discouraged),";
There's a misunderstanding: AFAIK the patch sent by Tassilo does not
make the completion-at-point-function return a "function that performs
completion" but does properly return completion data (i.e. region start,
region end, and completion table), part of which happens to be
represented by a function.
I.e. this is not one of the discouraged cases.
> - Make completing code allows to replace the region being completed with
> somethig that does not match at all.
AFAIK that's already the case, tho it depends on lots of factors, such
as what you mean by "completing code".
Stefan
- Completing with anything (was: [Orgmode] Re: Announcing org-contacts, a bbdb-like contact manager for Org), Julien Danjou, 2011/03/18
- Re: Completing with anything,
Stefan Monnier <=
- Re: Completing with anything, Julien Danjou, 2011/03/21
- Re: Completing with anything, Tassilo Horn, 2011/03/21
- Re: Completing with anything, Julien Danjou, 2011/03/21
- Re: Completing with anything, Tassilo Horn, 2011/03/21
- Re: Completing with anything, Stefan Monnier, 2011/03/21
- Re: Completing with anything, Dimitri Fontaine, 2011/03/21
- Re: Completing with anything, Julien Danjou, 2011/03/21
- Re: Completing with anything, Stefan Monnier, 2011/03/21
- Re: [O] Re: Completing with anything, Aankhen, 2011/03/22
- Re: [O] Re: Completing with anything, Tassilo Horn, 2011/03/22