comparison src/window.c @ 9028:74119e5602eb

(Fdelete_other_windows): Nice error if WINDOW is minibuf.
author Richard M. Stallman <rms@gnu.org>
date Fri, 23 Sep 1994 22:14:46 +0000
parents 2a9359b721da
children 984a4b1be1d1
comparison
equal deleted inserted replaced
9027:07d79cbdfbc9 9028:74119e5602eb
1450 window = selected_window; 1450 window = selected_window;
1451 else 1451 else
1452 CHECK_LIVE_WINDOW (window, 0); 1452 CHECK_LIVE_WINDOW (window, 0);
1453 1453
1454 w = XWINDOW (window); 1454 w = XWINDOW (window);
1455
1455 startpos = marker_position (w->start); 1456 startpos = marker_position (w->start);
1456 top = XFASTINT (w->top) - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w))); 1457 top = XFASTINT (w->top) - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w)));
1458
1459 if (MINI_WINDOW_P (w) && top > 0)
1460 error ("Can't expand minibuffer to full frame");
1457 1461
1458 window_loop (DELETE_OTHER_WINDOWS, window, 0, WINDOW_FRAME (w)); 1462 window_loop (DELETE_OTHER_WINDOWS, window, 0, WINDOW_FRAME (w));
1459 1463
1460 /* Try to minimize scrolling, by setting the window start to the point 1464 /* Try to minimize scrolling, by setting the window start to the point
1461 will cause the text at the old window start to be at the same place 1465 will cause the text at the old window start to be at the same place