Subject: bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 16 Feb 2022 23:30:39 +0100

No Wayman <[email-masked]> writes:

> With the following minimal init.el the initial *scratch* buffer does
> not have lexical binding enabled:
>
> (setq initial-buffer t

This variable doesn't seem to exist (in Emacs 29).

>      initial-major-mode 'emacs-lisp-mode)
>
> Bug, or my misunderstanding?

emacs-lisp-mode defaults to dynamic binding, so this sounds like it's
working as designed.

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