[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52312: 29.0.50; [Feature Reqeust] flymake or byte-compile warning fo
From: |
Lars Ingebrigtsen |
Subject: |
bug#52312: 29.0.50; [Feature Reqeust] flymake or byte-compile warning for passing wrong arg to declare-function |
Date: |
Sun, 05 Dec 2021 22:16:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Glenn Morris <rgm@gnu.org> 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