From: Tim Perkins <tprk77@gmail.com>
To: 20763@debbugs.gnu.org
Subject: bug#20763: 24.3.1; eval-buffer ignores lexical-binding in file local variables list
Date: Sun, 7 Jun 2015 13:26:00 -0400 [thread overview]
Message-ID: <CAGgFoErOrep+zSJCtY6fpr3UFq1doAPgxc2VVnt6id=CnXxybg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 980 bytes --]
next reply other threads:[~2015-06-07 17:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-07 17:26 Tim Perkins [this message]
2015-06-07 18:02 ` bug#20763: 24.3.1; eval-buffer ignores lexical-binding in file local variables list Glenn Morris
2015-06-08 0:56 ` Tim Perkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGgFoErOrep+zSJCtY6fpr3UFq1doAPgxc2VVnt6id=CnXxybg@mail.gmail.com' \
--to=tprk77@gmail.com \
--cc=20763@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.