Subject: bug#52312: 29.0.50; [Feature Reqeust] flymake or byte-compile warning for passing wrong arg to declare-function

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 05 Dec 2021 22:16:56 +0100

Glenn Morris <[email-masked]> writes:

> It's flagged by check-declare.
> If you don't use check-declare, then it doesn't matter what you write in
> the declare-function statement.

Byte compilation could still issue a warning if the FILE parameter isn't
a string, though?  Or...  is the FILE parameter evaluated, so that it
can also be an arbitrary form?  I'm having some difficulties following
the logic...  `byte-compile-macroexpand-declare-function' could check,
perhaps?

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