aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 871a152484e..2fb9fefd5e9 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -961,8 +961,12 @@ If BUFFER is omitted or nil, some interesting buffer is returned.")
961 } 961 }
962 if (!NILP (notsogood)) 962 if (!NILP (notsogood))
963 return notsogood; 963 return notsogood;
964 buf = Fget_buffer_create (build_string ("*scratch*")); 964 buf = Fget_buffer (build_string ("*scratch*"));
965 Fset_buffer_major_mode (buf); 965 if (NILP (buf))
966 {
967 buf = Fget_buffer_create (build_string ("*scratch*"));
968 Fset_buffer_major_mode (buf);
969 }
966 return buf; 970 return buf;
967} 971}
968 972