GNU bug report logs - #74145
31.0.50; Default lexical-binding to t

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Thu, 31 Oct 2024 20:59:02 UTC

Severity: wishlist

Tags: patch

Found in version 31.0.50

Full log


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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: psainty <at> orcon.net.nz, dancol <at> dancol.org, 74145 <at> debbugs.gnu.org,
 visuweshm <at> gmail.com
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
Date: Tue, 18 Feb 2025 20:47:13 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Cc: dancol <at> dancol.org, 74145 <at> debbugs.gnu.org
>> From: Stefan Kangas <stefankangas <at> gmail.com>
>> Date: Tue, 18 Feb 2025 13:59:13 -0500
>>
>> This change is unlikely to be very disruptive at this point.  For
>> starters, users can easily just add this to any ELisp file that lacks it
>> and move on with their lives:
>>
>>     -*- lexical-binding:nil -*-
>
> I thought we planned on displaying a warning for that?

We have discussed different warnings, so I'm not sure which exact
proposals are currently on the table.  But I think we currently warn
only if the lexical-binding cookie is missing.

As Stefan Monnier has pointed out, one could also use this to change the
global value:

    (set-default-toplevel-value 'lexical-binding nil)




This bug report was last modified 68 days ago.

Previous Next


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