aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1994-03-09 04:17:47 +0000
committerKarl Heuer <[email protected]>1994-03-09 04:17:47 +0000
commit671cfd1aa3792fa1aff4b488097924eeb88e15e4 (patch)
treef9edd8ca9075d8f98ae707e337869d755d2223d4 /src/window.c
parentd65147f61d1dfd2f408984d15ba55dec8b56f99e (diff)
(Fselect_window): Don't select an inactive minibuffer.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 3d80734234..6b6296a807 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1657,6 +1657,10 @@ before each command.")
w = XWINDOW (window);
+ if (MINI_WINDOW_P (w)
+ && NILP (call1 (intern ("minibuffer-window-active-p"), window)))
+ error ("Attempt to select inactive minibuffer window");
+
if (NILP (w->buffer))
error ("Trying to select deleted window or non-leaf window");