GNU bug report logs - #30301
26.0.91; setting lexical-binding with C-M-x vs M-x eval-buffer

Previous Next

Package: emacs;

Reported by: charles <at> aurox.ch (Charles A. Roelli)

Date: Wed, 31 Jan 2018 10:35:01 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 26.0.91

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30301 in the body.
You can then email your comments to 30301 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30301; Package emacs. (Wed, 31 Jan 2018 10:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to charles <at> aurox.ch (Charles A. Roelli):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 31 Jan 2018 10:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: charles <at> aurox.ch (Charles A. Roelli)
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.91; setting lexical-binding with C-M-x vs M-x eval-buffer
Date: Wed, 31 Jan 2018 11:41:45 +0100
From the *scratch* buffer in emacs -q, type:

(setq-local lexical-binding t) M-x eval-buffer RET

Afterwards, M-: lexical-binding RET shows "nil", but I expect to see
"t".

If you instead type C-M-x in *scratch*, then M-: lexical-binding RET
does show "t".

For recent discussion also see Bug#30078, which is about turning on
lexical-binding in M-: (eval-expression) -- a different but related
issue.




Added tag(s) confirmed. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Wed, 31 Jan 2018 11:25:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30301; Package emacs. (Wed, 09 Oct 2019 21:32:01 GMT) Full text and rfc822 format available.

Message #10 received at 30301 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: charles <at> aurox.ch (Charles A. Roelli)
Cc: 30301 <at> debbugs.gnu.org
Subject: Re: bug#30301: 26.0.91; setting lexical-binding with C-M-x vs M-x
 eval-buffer
Date: Wed, 09 Oct 2019 23:31:23 +0200
charles <at> aurox.ch (Charles A. Roelli) writes:

>>From the *scratch* buffer in emacs -q, type:
>
> (setq-local lexical-binding t) M-x eval-buffer RET
>
> Afterwards, M-: lexical-binding RET shows "nil", but I expect to see
> "t".
>
> If you instead type C-M-x in *scratch*, then M-: lexical-binding RET
> does show "t".

This is how eval-buffer is meant to work -- it'll ignore any setting of
lexical-binding and just looks for

  -*- lexical-binding: t -*-

cookies and uses that instead.  This wasn't documented, though, but that
has been fixed on the trunk now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Oct 2019 21:32:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 30301 <at> debbugs.gnu.org and charles <at> aurox.ch (Charles A. Roelli) Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Oct 2019 21:32:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 07 Nov 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 172 days ago.

Previous Next


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