(Fdelete_other_windows): Nice error if WINDOW is minibuf.

This commit is contained in:
Richard M. Stallman
1994-09-23 22:14:46 +00:00
parent 4cc76151a7
commit a2b38b3c3a

View File

@@ -1452,9 +1452,13 @@ value is reasonable when this function is called.")
CHECK_LIVE_WINDOW (window, 0);
w = XWINDOW (window);
startpos = marker_position (w->start);
top = XFASTINT (w->top) - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w)));
if (MINI_WINDOW_P (w) && top > 0)
error ("Can't expand minibuffer to full frame");
window_loop (DELETE_OTHER_WINDOWS, window, 0, WINDOW_FRAME (w));
/* Try to minimize scrolling, by setting the window start to the point