emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 80f410d281: ; Fix last changes in buffer.c


From: Eli Zaretskii
Subject: emacs-29 80f410d281: ; Fix last changes in buffer.c
Date: Fri, 16 Dec 2022 09:47:14 -0500 (EST)

branch: emacs-29
commit 80f410d281c6892c6aab4ce9b0a5bf052c7d88da
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; 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 443f90ff89..38c3150f2c 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;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]