unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode
@ 2022-02-16 22:13 No Wayman
  2022-02-16 22:30 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: No Wayman @ 2022-02-16 22:13 UTC (permalink / raw)
  To: 54031


With the following minimal init.el the initial *scratch* buffer 
does not have lexical binding enabled:

(setq initial-buffer t
      initial-major-mode 'emacs-lisp-mode)

Bug, or my misunderstanding?

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.31, cairo version 1.17.4)
 of 2022-02-16 built on nbook
Repository revision: 8737d79be8f82bb12ca12dc1a7de37a4d2875f39
Repository branch: master
System Description: Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --mandir=/usr/share/man 
 --with-gameuser=:games
 --with-sound=alsa --with-modules --without-libotf 
 --without-m17n-flt
 --without-gconf --without-gsettings --with-native-compilation
 --with-xinput2 --with-pgtk --without-xaw3d --with-sound=no
 --without-gpm --without-compress-install
 '--program-transform-name=s/\([ec]tags\)/\1.emacs/'
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt 
 -fexceptions
 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
 -fstack-clash-protection -fcf-protection'
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON 
LCMS2
LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK 
PNG
RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM 
GTK3 ZLIB
Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-16 22:30 UTC (permalink / raw)
  To: No Wayman; +Cc: 54031

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).

>      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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode
  2022-02-16 22:30 ` Lars Ingebrigtsen
@ 2022-02-16 22:48   ` No Wayman
  2022-02-17 11:48     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: No Wayman @ 2022-02-16 22:48 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 54031


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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#54031: 29.0.50; *scratch* buffer defaults to dynamic scoping when initial-major-mode 'emacs-lisp-mode
  2022-02-16 22:48   ` No Wayman
@ 2022-02-17 11:48     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-17 11:48 UTC (permalink / raw)
  To: No Wayman; +Cc: 54031

No Wayman <iarchivedmywholelife@gmail.com> writes:

> Agreed that it sounds like it's working as designed.
> Sorry for the noise and thanks for your help.

No problem; I'm closing this bug report, then.

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-17 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2022-02-17 11:48     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).