GNU bug report logs - #15616
24.3; Setting lexical-binding in file's local variables block should trigger a warning

Previous Next

Package: emacs;

Reported by: Ryan <rct <at> thompsonclan.org>

Date: Tue, 15 Oct 2013 00:42:02 UTC

Severity: wishlist

Found in version 24.3

Fixed in version 24.4

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: Ryan <rct <at> thompsonclan.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15616 <at> debbugs.gnu.org
Subject: bug#15616: 24.3; Setting lexical-binding in file's local variables block should trigger a warning
Date: Tue, 15 Oct 2013 10:17:51 -0700
Actually, my testing indicates that the documentation is inaccurate: 
lexical-binding can be set via either the first line or a local 
variables block, and it will take effect in both cases when the file is 
compiled. This is on version 24.3.1. So I guess the documentation just 
needs to be updated.

On Mon Oct 14 20:22:32 2013, Stefan Monnier wrote:
>> When compiling and/or loading an emacs lisp file that sets lexical-binding
>> in a local variables section rather than in the first line of the
>> file, a warning should be shown informing that the setting will have no
>> effect.
>
> Agreed, patch welcome,
>
>
>          Stefan




This bug report was last modified 11 years and 275 days ago.

Previous Next


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