summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-03-09 04:17:47 +0000
committerKarl Heuer <kwzh@gnu.org>1994-03-09 04:17:47 +0000
commite93c8c386331878df56dc0587cc51650cf2f8b01 (patch)
tree05ef095dea7e18dadfba2d0eafb866ce4375f4e7 /src/window.c
parent1c50b77d223e21a848e74ec2d01c890d93b64096 (diff)
downloademacs-e93c8c386331878df56dc0587cc51650cf2f8b01.tar.gz
(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 3d807342346..6b6296a807c 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");