From 80f410d281c6892c6aab4ce9b0a5bf052c7d88da Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 16 Dec 2022 16:46:37 +0200 Subject: [PATCH] ; Fix last changes in buffer.c * src/buffer.c (other_buffer_safely): Ensure Lisp Interaction mode in *scratch*. (Bug#60096) --- src/buffer.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2