emacs-devel
[Top][All Lists]
Advanced

[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 19:30:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> Why should explicit #'-quoting be needed for (declare (completion foo))
> when it's not needed for any other declare form property, including the
> new and related 'modes' property:
>
>   (declare (modes foo))
>   (declare (gv-setter foo))
>   (declare (gv-expander foo))
>   (declare (obsolete foo ...))
>   (declare (interactive-only foo))
>   (declare (compiler-macro foo))
>   (declare (indent foo))
>
> How is (declare (completion ...)) any different to these?

Most of those refer to symbols (or numbers), so #'-ing is irrelevant.
But gv-setter (for one) does refer to a function, so there's precedence
for using symbols instead of functions here indeed.

Anybody else have an opinion?

>> or if it's a lambda, that Emacs will eventually byte-compile it before
>> sticking it into the plist.
>
> Does the proposed patch stop that from happening?

Not at all.  I just wanted to mention it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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