[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30301: 26.0.91; setting lexical-binding with C-M-x vs M-x eval-buffe
From: |
Lars Ingebrigtsen |
Subject: |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
charles@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#30301: 26.0.91; setting lexical-binding with C-M-x vs M-x eval-buffer,
Lars Ingebrigtsen <=