bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15616: 24.3; Setting lexical-binding in file's local variables block


From: Ryan
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
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]