Commit 3cf85532 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fset_window_buffer): Fix dedicated window error call.

(window_loop, case UNSHOW_BUFFER): Clear dedicated flag.
parent 62521951
......@@ -1269,6 +1269,7 @@ window_loop (type, obj, mini, frames)
if (NILP (another_buffer))
another_buffer
= Fget_buffer_create (build_string ("*scratch*"));
XWINDOW (w)->dedicated = Qnil;
Fset_window_buffer (w, another_buffer);
if (EQ (w, selected_window))
Fset_buffer (XWINDOW (w)->buffer);
......@@ -1626,7 +1627,8 @@ BUFFER can be a buffer or buffer name.")
is first being set up. */
{
if (!NILP (w->dedicated) && !EQ (tem, buffer))
error ("Window is dedicated to %s\n", tem);
error ("Window is dedicated to `%s'",
XSTRING (XBUFFER (tem)->name)->data);
unshow_buffer (w);
}
......
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