Subject: bug#77883: 31.0.50; C-c C-e in *scratch* generates a missing lexical binding cookie warning

From: Eli Zaretskii <[email-masked]>
Date: Fri, 18 Apr 2025 13:49:07 +0300

> From: Sean Whitton <[email-masked]>
> Date: Fri, 18 Apr 2025 10:35:42 +0800
> 
> Found another case.

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

> *scratch* should probably remain under the dynamic binding dialect of
> Emacs Lisp until and unless we switch the default.

I think we intentionally decided to switch to t, and I don't see a
reason to revert that decision.  Please provide a rationale for your
suggestion, because without that there's no way of reasoning about
this.