From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Jorgen Schäfer" <contact@jorgenschaefer.de>
Cc: 20139@debbugs.gnu.org
Subject: bug#20139: 25.0.50; eval-buffer ignores lexical-binding
Date: Thu, 19 Mar 2015 12:28:52 -0400 [thread overview]
Message-ID: <jwv7fud54w4.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CALqDrSfa=tzYrybZdP7Xsgh5dhnobCSo6Y4=B31Lsy10HSSJNg@mail.gmail.com> ("Jorgen Schäfer"'s message of "Thu, 19 Mar 2015 15:52:11 +0100")
>> The basic rule for me is "never (setq lexical-binding ...)". Instead,
>> either add the file-local magic marker and manipulate it as a whole
>> buffer/file, or let-bind lexical-binding around the call to
>> `eval-region', or pass the second arg to `eval'.
> Let-binding `lexical-binding' does not affect `eval-buffer', either.
Yes: note that I distinguish between "whole buffer/file" and the other
case (the other case being when you evaluate some chunk of code).
Stefan
next prev parent reply other threads:[~2015-03-19 16:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 22:09 bug#20139: 25.0.50; eval-buffer ignores lexical-binding Jorgen Schaefer
2015-03-19 3:10 ` Stefan Monnier
2015-03-19 7:33 ` Jorgen Schäfer
2015-03-19 9:56 ` Nicolas Richard
2015-03-19 14:15 ` Stefan Monnier
[not found] ` <CALqDrSccFR=TMo=r96v_ODCJbq=afrcaXCse77shekyRWwEyxA@mail.gmail.com>
[not found] ` <jwvmw3959zl.fsf-monnier+emacsbugs@gnu.org>
2015-03-19 14:52 ` Jorgen Schäfer
2015-03-19 16:28 ` Stefan Monnier [this message]
2019-10-07 15:25 ` Lars Ingebrigtsen
2015-03-19 15:49 ` Glenn Morris
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv7fud54w4.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=20139@debbugs.gnu.org \
--cc=contact@jorgenschaefer.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).