GNU bug report logs - #30078
27.0.50; Use lexical-binding for M-:

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Date: Thu, 11 Jan 2018 16:38:01 UTC

Severity: wishlist

Found in version 27.0.50

Fixed in version 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, Stefan Monnier <monnier <at> iro.umontreal.ca>, 30078 <at> debbugs.gnu.org
Subject: bug#30078: 27.0.50; Use lexical-binding for M-:
Date: Fri, 12 Jan 2018 15:33:25 -0500
On Fri, Jan 12, 2018 at 3:03 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
>> Cc: michael_heerdegen <at> web.de, 30078 <at> debbugs.gnu.org
>> Date: Fri, 12 Jan 2018 14:06:41 -0500
>>
>> >> > Please, not in *scratch*.  Setting variables and then evaluating forms
>> >> > that use them is very useful there.
>> >> I'm not sure how the two sentences are connected:
>> >> Setting lexical-binding to t in *scratch* won't prevent setting
>> >> variables and evaluating forms that use them.
>> > For some value of "prevent", surely?  Dynamically-bound variables will
>> > no longer work as they did before, right?
>>
>> No, they'll work pretty much as before.
>
> Then you are saying that turning on lexical-binding in *scratch* will
> change nothing at all?  I very much doubt that, and my witness are all
> those packages that broke due to lexical-binding and needed minor
> fixes.

Top-level `setq's would be unaffected (because the lexical environment
at the top level is empty). Lexical binding only changes what `let'
does, for undeclared variables.
(okay, not *just* `let', it also affects `lambda')




This bug report was last modified 6 years and 24 days ago.

Previous Next


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