GNU bug report logs - #66636
Move lexical-binding warning from checkdoc to byte-compiler

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Date: Thu, 19 Oct 2023 11:50:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Mattias Engdegård
 <mattias.engdegard <at> gmail.com>
Cc: "luangruo <at> yahoo.com" <luangruo <at> yahoo.com>,
 "monnier <at> iro.umontreal.ca" <monnier <at> iro.umontreal.ca>,
 "66636 <at> debbugs.gnu.org" <66636 <at> debbugs.gnu.org>,
 "stefankangas <at> gmail.com" <stefankangas <at> gmail.com>
Subject: RE: [External] : bug#66636: Move lexical-binding warning from
 checkdoc to byte-compiler
Date: Sat, 21 Oct 2023 14:42:56 +0000
> If specifying lexical-binding:nil in the first line is the solution
> for those who want to keep dynamically-bound code, then yes, it should
> be definitely in NEWS, and probably also in the ELisp manual.

Yes, it should be documented, but not just as
a simple solution, because it's not.

FWIW: It's not a solution for code that uses
`lexical-let[*]'.  That's simply been removed
now from Emacs, unfortunately.  It's not as
simple as just setting `lexical-binding' to nil
and replacing occurrences of `lexical-binding'
with `let[*]'.

And it's not even simple to try to include the
macros for `lexical-let[*]' in your code as a
temporary stop-gap.  Ditching `lexical-let[*]'
can really break things.  Just saying...

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

Previous Next


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