GNU bug report logs - #15070
24.3.50.1; eval-buffer ignores the buffer local value of lexical-binding.

Previous Next

Package: emacs;

Reported by: E Sabof <esabof <at> gmail.com>

Date: Sun, 11 Aug 2013 13:17:02 UTC

Severity: minor

Tags: fixed

Merged with 20139

Found in versions 24.3.50.1, 25.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: Jorgen Schäfer <contact <at> jorgenschaefer.de>, Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 20139 <at> debbugs.gnu.org, 15070 <at> debbugs.gnu.org
Subject: bug#15070: bug#20139: 25.0.50; eval-buffer ignores lexical-binding
Date: Mon, 07 Oct 2019 17:25:28 +0200
Stefan Monnier <monnier <at> 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




This bug report was last modified 5 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.