Commit dba1a30a authored by Gerd Moellmann's avatar Gerd Moellmann

(Fother_buffer): Don't call Fset_buffer_major_mode

for *scratch* if it already existed.
parent ae1aa776
......@@ -961,8 +961,12 @@ If BUFFER is omitted or nil, some interesting buffer is returned.")
}
if (!NILP (notsogood))
return notsogood;
buf = Fget_buffer_create (build_string ("*scratch*"));
Fset_buffer_major_mode (buf);
buf = Fget_buffer (build_string ("*scratch*"));
if (NILP (buf))
{
buf = Fget_buffer_create (build_string ("*scratch*"));
Fset_buffer_major_mode (buf);
}
return buf;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment