GNU bug report logs -
#47843
28.0.50; Setting enable-local-variables to nil *appears* to inhibit lexical-binding (but doesn't)
Previous Next
Reported by: Phil Sainty <psainty <at> orcon.net.nz>
Date: Sat, 17 Apr 2021 13:53:02 UTC
Severity: normal
Tags: fixed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
With enable-local-variables set to nil, when editing an elisp buffer
using lexical-binding it can *seem* as though lexical-binding is not
enabled, as -*- lexical-binding: t -*- is being inhibited along with
any others.
Experimentally, Emacs appears to do the right thing, still evaluating
the code using lexical-binding. I tested loading compiled and
uncompiled code, as well as `eval-buffer', and all of those seemed
to work correctly.
So, as far as I can, see the *only* issue is that inspecting the
local variable suggests differently. This includes Emacs 28
displaying "elisp/d" (for dynamic binding) in the mode line instead
of "elisp/l".
Should an exception be made for this specific case, so that the
file-local variable is processed even if enable-local-variables
is nil?
This bug report was last modified 4 years and 13 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.