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


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: monnier <at> IRO.UMontreal.CA, 30078 <at> debbugs.gnu.org
Subject: Re: bug#30078: 27.0.50; Use lexical-binding for M-:
Date: Fri, 12 Jan 2018 23:04:56 +0200
> From: Michael Heerdegen <michael_heerdegen <at> web.de>
> Cc: Stefan Monnier <monnier <at> IRO.UMontreal.CA>,  30078 <at> debbugs.gnu.org
> Date: Fri, 12 Jan 2018 21:55:25 +0100
> 
> What are we doing with scratch?
> 
> (1) Setting global variables, defining small functions and such simple
> stuff.  lexical-binding doesn't make a big difference here.

We need to discuss the differences whether they are big or not.

> (2) Re-evaluate parts of the source code, often with small
> modifications, for testing and debugging.  Since more and more packages
> make active use of lexical-binding, this is actually broken currently!
> Re-evaluating parts of source code in scratch can currently break Emacs.

You are describing a mistake.  People make mistakes all the time, and
will continue making mistakes whatever we do.  That shouldn't be a
basis for our decisions.

> (3) I often posted some code examples in emacs-help which made use of
> lexical-binding.  People pasted it into scratch and it didn't work.
> It's currently even not trivial to evaluate such examples with
> lexical-binding on.

Another mistake.  I don't see why this should be of any importance for
the decision at hand.

> OTOH, there is not too much code that really relies on dynamical binding
> mode.  And very often, such code is just written in a bad style (missing
> `defvar's etc.).

That's your opinion.  I happen not to share it.

> In summary, I think the advantages clearly prevail.

I actually didn't yet see any advantages mentioned, and the above
aren't, IMO.  Lexical-binding is just a feature, albeit an important
one.  It doesn't have to be introduced into every possible corner of
Emacs, not without a good reason.




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.