GNU bug report logs - #77883
31.0.50; C-c C-e in *scratch* generates a missing lexical binding cookie warning

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Fri, 18 Apr 2025 02:37:06 UTC

Severity: normal

Merged with 78206

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77883 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#77883: 31.0.50; C-c C-e in *scratch* generates a missing lexical binding cookie warning
Date: Fri, 18 Apr 2025 13:12:48 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> IMO, it's a bug, because "C-x C-e" doesn't generate any such warnings,
> and lexical-binding is t in *scratch* anyway.

I agree it is a bug.

C-c C-e calls `eval-buffer' which "ignores the current value of the
`lexical-binding' variable.  Instead it will heed any
-*- lexical-binding: t -*- settings in the buffer, and if there is no such
setting, the buffer will be evaluated without lexical binding."

Not good in this case.


Michael.




This bug report was last modified 15 days ago.

Previous Next


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