GNU bug report logs -
#20763
24.3.1; eval-buffer ignores lexical-binding in file local variables list
Previous Next
Reported by: Tim Perkins <tprk77 <at> gmail.com>
Date: Sun, 7 Jun 2015 17:58:02 UTC
Severity: minor
Tags: notabug
Found in version 24.3.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Doing a M-x eval-buffer on a file containing this:
(funcall
(let ((a 0))
(lambda ()
a)))
;; Local Variables:
;; lexical-binding: t
;; End:
Will result in an error:
funcall: Symbol's value as variable is void: a
But a file containing this:
;; -*- lexical-binding: t -*-
(funcall
(let ((a 0))
(lambda ()
a)))
Will work as expected. No problem.
I was expecting these these to be equivalent. I checked the manual,
"Specifying File Variables" and that seems to say that using either the
first line or variable list should have the same effect.
Seems related to #15070 and #20139.
(I'm not sure about the exact version of Emacs. It's probably old, I'm on
Ubuntu 14.04 at the moment. Dpkg reports 24.3+1-2ubuntu1.)
-- Tim
[Message part 2 (text/html, inline)]
This bug report was last modified 10 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.