GNU bug report logs - #20640
24.5; lexical-binding should work like a normal file-local variable

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Sun, 24 May 2015 10:21:03 UTC

Severity: wishlist

Tags: wontfix

Merged with 10605, 15849

Found in versions 24.3.50, 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Philipp Stephani <p.stephani2 <at> gmail.com>,
 Daniel Colascione <dancol <at> dancol.org>, 20640 <at> debbugs.gnu.org
Subject: Re: bug#20640: 24.5;
 lexical-binding should work like a normal file-local variable
Date: Tue, 26 May 2015 21:49:35 -0400
> Even if the code were to check for "coding:" (which we already have to
> scan the end of the file for) and "lexical-binding:" in the same pass?

The check for "coding:" is a misdesign, indeed.  I think we should use
some utf-8 tell-tale sign at the beginning of *.el files to eliminate
the need to check for "coding:" (and to go through
load-with-code-conversion) in the normal case.  It could be a utf-8 BOM
or something like that.  Ideally we could give extra meaning to this
marker so it not only means "uses utf-8" but also "uses
lexical-scoping", so that we can have a future where we don't need to
add "lexical-binding:t" to every file.


        Stefan




This bug report was last modified 5 years and 334 days ago.

Previous Next


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