[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: |
Basil L. Contovounesios |
Subject: |
Re: master 9291e73 02/12: Add new 'declare' forms for command completion predicates |
Date: |
Sun, 21 Feb 2021 16:13:40 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> What I expect to see people actually doing here is
>
> (declare (completion #'foo))
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?
> 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?
--
Basil