Commit 7c2087ee authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fpop_to_buffer): Call Fset_buffer_major_mode if we create a buffer.

parent a6e0153c
......@@ -1146,7 +1146,14 @@ window even if BUFFER is already visible in the selected window.")
if (NILP (bufname))
buf = Fother_buffer (Fcurrent_buffer (), Qnil);
else
buf = Fget_buffer_create (bufname);
{
buf = Fget_buffer (bufname);
if (NILP (buf))
{
buf = Fget_buffer_create (bufname);
Fset_buffer_major_mode (buf);
}
}
Fset_buffer (buf);
record_buffer (buf);
Fselect_window (Fdisplay_buffer (buf, other));
......
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