all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: No Wayman <iarchivedmywholelife@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 54031@debbugs.gnu.org
Subject: bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode
Date: Wed, 16 Feb 2022 17:48:20 -0500	[thread overview]
Message-ID: <87pmnm8lxh.fsf@gmail.com> (raw)
In-Reply-To: <874k4yo35c.fsf@gnus.org>


Lars Ingebrigtsen <larsi@gnus.org> writes:

> No Wayman <iarchivedmywholelife@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.





  reply	other threads:[~2022-02-16 22:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16 22:13 bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode No Wayman
2022-02-16 22:30 ` Lars Ingebrigtsen
2022-02-16 22:48   ` No Wayman [this message]
2022-02-17 11:48     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmnm8lxh.fsf@gmail.com \
    --to=iarchivedmywholelife@gmail.com \
    --cc=54031@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.