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 15:02:10 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

>>> (setq-local completion-at-point-functions
>>>     (list (cape-super-capf #'cape-dabbrev #'cape-dict #'cape-keyword)))
>
> Note that this sets up these CAPF functions only for the buffer that's
> current when the code is executed, so if you put it into your .emacs
> it's probably going to affect completions in *scratch* only.
>
>> (setq my-merged-table (completion-table-merge #'cap-dabbrev
>> #'cape-dict))
>
> I don't think so: `cape-dabbrev` is a CAPF function, not a completion table.

Ooops. Misinformation! I do often forget the distinction between capf
functions and completion tables.




reply via email to

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