changeset 6270:853b88dd9945

(Fcall_interactively): Don't select an active minibuffer.
author Karl Heuer <kwzh@gnu.org>
date Wed, 09 Mar 1994 06:07:43 +0000
parents 8bd31035cf90
children 264f353c5b00
files src/callint.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callint.c	Wed Mar 09 06:02:56 1994 +0000
+++ b/src/callint.c	Wed Mar 09 06:07:43 1994 +0000
@@ -328,7 +328,13 @@
 	      && XTYPE (event = XCONS (event)->cdr) == Lisp_Cons
 	      && XTYPE (event = XCONS (event)->car) == Lisp_Cons
 	      && XTYPE (event = XCONS (event)->car) == Lisp_Window)
-	    Fselect_window (event);
+	    {
+	      if (MINI_WINDOW_P (XWINDOW (window))
+		  && NILP (call1 (intern ("minibuffer-window-active-p"),
+				  window)))
+		error ("Attempt to select inactive minibuffer window");
+	      Fselect_window (event);
+	    }
 	  string++;
 	}
       else break;