GNU bug report logs -
#54031
29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode
Previous Next
Reported by: No Wayman <iarchivedmywholelife <at> gmail.com>
Date: Wed, 16 Feb 2022 22:23:02 UTC
Severity: normal
Tags: notabug
Found in version 29.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 54031 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> No Wayman <iarchivedmywholelife <at> gmail.com> 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).
>
Apologies, a typo of initial-buffer-choice on my end.
>> 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.
I see now after a closer reading of the NEWS.27 entry:
> ** Lexical binding is now used by default when evaluating
> interactive Elisp.
> [...] as well as in
> 'lisp-interaction-mode' and 'ielm-mode', used in the "*scratch*"
> and
> "*ielm*" buffers.
Agreed that it sounds like it's working as designed.
Sorry for the noise and thanks for your help.
This bug report was last modified 3 years and 148 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.