emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about the initials completion-style


From: Stefan Monnier
Subject: Re: Question about the initials completion-style
Date: Fri, 23 Jul 2010 00:44:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> It looks to me that I could copy the `completion-pcm-all-completions'
> function and add a FILTER for deleting the entries consisting of too
> many words to the call to `completion-pcm--find-all-completions'.  I'll
> try that as soon as I find some time...

IIRC there's some dependency between partial-completion and initials, so
doing it right may require more work.

> A related question: Is the canonical way to use different completion
> styles depending on what to complete advising the relevant functions?

There is no such canonical way to do it, and it's one of the facilities
that we need to add, indeed.  The read-buffer case is once such glaring
example (where we should change the default to (basic substring),
actually).
If someone has an idea for what such a canonical way should look like
(and no, using `advice' is not the answer: it's only "the canonical way
to do it for lack of anything better"), I'm all ears.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]