GNU bug report logs - #66136
29.1; byte-compiler reports "misplaced interactive spec" with empty fct in lexical environment

Previous Next

Package: emacs;

Reported by: "Jens Schmidt" <jschmidt4gnu <at> vodafonemail.de>

Date: Thu, 21 Sep 2023 13:12:02 UTC

Severity: normal

Found in version 29.1

Done: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #44 received at 66136 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
Cc: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>,
 Eli Zaretskii <eliz <at> gnu.org>, 66136 <at> debbugs.gnu.org
Subject: Re: bug#66136: 29.1; byte-compiler reports "misplaced interactive
 spec" with empty fct in lexical environment
Date: Sat, 23 Sep 2023 18:31:50 -0400
>> Our triptych of meta-forms in function bodies (documentation,
>> declare, interactive) is still not handled in a very principled
>> or robust way.
> Just curious since `macroexp-parse-body' also takes care about it: Where
> is `cl-declare' in this picture?

I don't think anybody treats it with much respect and it comes with
a fair share of caveats.  Personally I keep a safe distance from it :-)

> ------------------------- snip -------------------------
> (byte-compile
>  '(defun foo ()
>     (cl-declare)
>     (interactive)))
> ------------------------- snip -------------------------

I think you *have* to place it after the `interactive` if you want it to work.


        Stefan





This bug report was last modified 1 year and 300 days ago.

Previous Next


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