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: Stefan Monnier
Subject: Re: merging results from completion-at-point-functions
Date: Fri, 29 Apr 2022 16:52:21 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> (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.


        Stefan




reply via email to

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