changeset 6267:c10a162546f0

(Fselect_window): Don't select an inactive minibuffer.
author Karl Heuer <kwzh@gnu.org>
date Wed, 09 Mar 1994 04:17:47 +0000
parents 66c0ed95c03f
children 43853122823f
files src/window.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Wed Mar 09 04:00:12 1994 +0000
+++ b/src/window.c	Wed Mar 09 04:17:47 1994 +0000
@@ -1657,6 +1657,10 @@
 
   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");