[Top][All Lists]

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

Re: Extending the ecomplete.el data store.

From: Karl Fogel
Subject: Re: Extending the ecomplete.el data store.
Date: Thu, 08 Feb 2018 11:21:11 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:
>A good halfway step would be for mailaprop to provide
>a completion-at-point-function so it can also be used for

Thanks; I'll take a look.

>I think the main hurdle is that completion-at-point-function only
>directly supports prefix completion.  The UI on top of it supports
>substring completion, but it does it by requesting "all completions"
>from the backend (i.e. from mailaprop in our case) and then doing the
>substring search.  So if "HAHAHA" appears in one of the variants but not
>in the "canonical" name, it won't be found.  And more importantly,
>listing all completions needs to be fast/memoized otherwise the user
>will not like the performance.

*nod*  I don't know much about how core Emacs handles this.  I assume it does 
not memoize all the possible prefix strings and does not ask callers to do that 
either.  Mailaprop (which operates with substrings rather than just prefixes) 
memoizes every substring that gets completed at least once.  If there's any 
existing code in Emacs that you can point me to as a good example of the kind 
of memoization you're thinking of, please do.

Best regards,

reply via email to

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