From: Eli Zaretskii Date: Fri, 16 Dec 2022 14:46:37 +0000 (+0200) Subject: ; Fix last changes in buffer.c X-Git-Tag: emacs-29.0.90~1129 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80f410d281c;p=emacs.git ; Fix last changes in buffer.c * src/buffer.c (other_buffer_safely): Ensure Lisp Interaction mode in *scratch*. (Bug#60096) --- diff --git a/src/buffer.c b/src/buffer.c index 443f90ff894..38c3150f2c5 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1757,6 +1757,7 @@ other_buffer_safely (Lisp_Object buffer) { AUTO_STRING (scratch, "*scratch*"); buf = Fget_buffer_create (scratch, Qnil); + Fset_buffer_major_mode (buf); } return buf; }