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

(Fdelete_other_windows): Nice error if WINDOW is minibuf.

parent 4cc76151
......@@ -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);
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
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