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

From: Stefan Monnier <[email-masked]>
Date: Fri, 18 Apr 2025 11:36:30 -0400

> If load-with-code-conversion is the only case where this is needed, we
> could do that locally in load-with-code-conversion, right?  I mean,
> there's no need to "punish" all the users of eval-buffer for that
> single use.  Right?

I guess someone should look at the other uses of `eval-buffer` to figure
out if that's the case.

Another approach might be to check if `lexical-binding` is set
buffer-locally and if so to obey it without even checking the
`lexical-binding` cookie.

        Stefan