Commit 45945a7b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(window_loop, case UNSHOW_BUFFER):

When we delete a frame, skip all the windows on that frame.
parent de517f67
...@@ -1337,7 +1337,26 @@ window_loop (type, obj, mini, frames) ...@@ -1337,7 +1337,26 @@ window_loop (type, obj, mini, frames)
&& !NILP (XWINDOW (w)->dedicated) && !NILP (XWINDOW (w)->dedicated)
&& other_visible_frames (f)) && other_visible_frames (f))
Fdelete_frame (WINDOW_FRAME (XWINDOW (w)), Qnil); {
/* Skip the other windows on this frame.
There might be one, the minibuffer! */
if (! EQ (w, last_window))
while (f == XFRAME (WINDOW_FRAME (XWINDOW (next_window))))
/* As we go, check for the end of the loop.
We mustn't start going around a second time. */
if (EQ (next_window, last_window))
last_window = w;
next_window = Fnext_window (next_window,
mini ? Qt : Qnil,
/* Now we can safely delete the frame. */
Fdelete_frame (WINDOW_FRAME (XWINDOW (w)), Qnil);
else else
#endif #endif
{ {
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