Mercurial > emacs
changeset 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 | 07d79cbdfbc9 |
children | f0d89b62dd27 |
files | src/window.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Fri Sep 23 21:02:25 1994 +0000 +++ b/src/window.c Fri Sep 23 22:14:46 1994 +0000 @@ -1452,9 +1452,13 @@ 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