Commit faa64cf7 authored by Richard M. Stallman's avatar Richard M. Stallman

(window_loop): Pass 2nd arg to Fother_buffer.

parent 73ce9046
...@@ -1113,7 +1113,7 @@ window_loop (type, obj, mini, frames) ...@@ -1113,7 +1113,7 @@ window_loop (type, obj, mini, frames)
on the frame, find a new buffer to display there. */ on the frame, find a new buffer to display there. */
if (NILP (XWINDOW (w)->parent)) if (NILP (XWINDOW (w)->parent))
{ {
Lisp_Object new_buffer = Fother_buffer (obj); Lisp_Object new_buffer = Fother_buffer (obj, Qnil);
if (NILP (new_buffer)) if (NILP (new_buffer))
new_buffer new_buffer
= Fget_buffer_create (build_string ("*scratch*")); = Fget_buffer_create (build_string ("*scratch*"));
...@@ -1151,7 +1151,7 @@ window_loop (type, obj, mini, frames) ...@@ -1151,7 +1151,7 @@ window_loop (type, obj, mini, frames)
if (EQ (XWINDOW (w)->buffer, obj)) if (EQ (XWINDOW (w)->buffer, obj))
{ {
/* Find another buffer to show in this window. */ /* Find another buffer to show in this window. */
Lisp_Object another_buffer = Fother_buffer (obj); Lisp_Object another_buffer = Fother_buffer (obj, Qnil);
if (NILP (another_buffer)) if (NILP (another_buffer))
another_buffer another_buffer
= Fget_buffer_create (build_string ("*scratch*")); = Fget_buffer_create (build_string ("*scratch*"));
......
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