From: Richard M. Stallman Date: Fri, 23 Sep 1994 22:14:46 +0000 (+0000) Subject: (Fdelete_other_windows): Nice error if WINDOW is minibuf. X-Git-Tag: emacs-19.34~6826 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a2b38b3c3a102a38dd14df18116a265f320b0b83;p=emacs.git (Fdelete_other_windows): Nice error if WINDOW is minibuf. --- diff --git a/src/window.c b/src/window.c index 67fe10fe26c..95a51c3ecb9 100644 --- a/src/window.c +++ b/src/window.c @@ -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