From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: "Jorgen Schäfer" <contact@jorgenschaefer.de>,
"Nicolas Richard" <theonewiththeevillook@yahoo.fr>,
20139@debbugs.gnu.org, 15070@debbugs.gnu.org
Subject: bug#20139: 25.0.50; eval-buffer ignores lexical-binding
Date: Mon, 07 Oct 2019 17:25:28 +0200 [thread overview]
Message-ID: <87sgo460if.fsf@gnus.org> (raw)
In-Reply-To: <jwvzj795b2l.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Thu, 19 Mar 2015 10:15:29 -0400")
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> IOW eval-buffer obeys the "file"-local variable by calling
>> specbind (Qlexical_binding, lisp_file_lexically_bound_p (buf) ?
>> Qt : Qnil);
>> while eval-region simply uses the current value of lexical-binding.
>
> Indeed, and I don't think we can easily change either of these.
> Jorgen, what is the original problem you're trying to solve?
So `eval-buffer' ignores the buffer-local value of `lexical-binding',
and that's a feature. So I think we should just document that?
I've now done so in Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-10-07 15:25 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
2019-10-07 15:25 ` Lars Ingebrigtsen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgo460if.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=15070@debbugs.gnu.org \
--cc=20139@debbugs.gnu.org \
--cc=contact@jorgenschaefer.de \
--cc=monnier@IRO.UMontreal.CA \
--cc=theonewiththeevillook@yahoo.fr \
/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.