[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 9291e73 02/12: Add new 'declare' forms for command completion
From: |
Lars Ingebrigtsen |
Subject: |
Re: master 9291e73 02/12: Add new 'declare' forms for command completion predicates |
Date: |
Sun, 21 Feb 2021 16:54:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
>> But you can say
>>
>> (declare (completion (lambda (...) ...)))
>
> Which my patch will turn into (function (lambda (...) ...)), which is
> still correct and should be equivalent.
Sure, but it's a bit redundant.
>> So it's a list of functions, not a list of symbols...
>
> What is a list? The completion-predicate property takes on a single
> value satisfying functionp.
Sorry, I meant a single function.
What I expect to see people actually doing here is
(declare (completion #'foo))
or if it's a lambda, that Emacs will eventually byte-compile it before
sticking it into the plist.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no