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

Previous Next

Package: emacs;

Reported by: nobiot <me <at> nobiot.com>

Date: Sun, 5 Dec 2021 18:09:09 UTC

Severity: wishlist

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: nobiot <me <at> nobiot.com>, 52312 <at> debbugs.gnu.org
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
Glenn Morris <rgm <at> 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




This bug report was last modified 3 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.