help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: merging results from completion-at-point-functions


From: Eric Abrahamsen
Subject: Re: merging results from completion-at-point-functions
Date: Fri, 29 Apr 2022 08:08:37 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hello all,
>
> I currently use '(cape-dabbrev cape-ispell cape-dict) as the list for
> completion-at-point-functions when writing prose.
>
> I keep trying different orderings of these entries as the behaviour
> changes significantly, not surprisingly given the /greedy/ nature of
> completing-at-point, if I understand things correctly.  Ideally, I would
> like a merged search for potential completions, such as I believe
> company-mode does if you group backends.
>
> Is it possible to specify a grouping or merge operation?  Or is there a
> generalised capf that does this, I guess?

Two possibilities: since you're using cape, use `cape-super-capf' to
merge a bunch of cape capf functions into one.

Other possibility: use `completion-table-merge' in exactly the same way.
This should be the general version of what `cape-super-capf' does.

Please try both and report back! I'm very curious, as well.

Eric





reply via email to

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