changeset 16561:55fcbbf28987

Include frame.h and window.h. (Fy_or_n_p): Handle minibuffer_auto_raise here.
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 Nov 1996 20:32:48 +0000
parents 8b1dd6f2222d
children 4999fc12564e
files src/fns.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fns.c	Mon Nov 11 00:35:31 1996 +0000
+++ b/src/fns.c	Mon Nov 11 20:32:48 1996 +0000
@@ -32,6 +32,8 @@
 #include "buffer.h"
 #include "keyboard.h"
 #include "intervals.h"
+#include "frame.h"
+#include "window.h"
 
 #ifndef NULL
 #define NULL (void *)0
@@ -39,6 +41,9 @@
 
 extern Lisp_Object Flookup_key ();
 
+extern int minibuffer_auto_raise;
+extern Lisp_Object minibuf_window;
+
 Lisp_Object Qstring_lessp, Qprovide, Qrequire;
 Lisp_Object Qyes_or_no_p_history;
 Lisp_Object Qcursor_in_echo_area;
@@ -1612,6 +1617,15 @@
       choose_minibuf_frame ();
       message_nolog ("%s(y or n) ", XSTRING (xprompt)->data);
 
+      if (minibuffer_auto_raise)
+	{
+	  Lisp_Object mini_frame;
+
+	  mini_frame = WINDOW_FRAME (XWINDOW (minibuf_window));
+
+	  Fraise_frame (mini_frame);
+	}
+
       obj = read_filtered_event (1, 0, 0);
       cursor_in_echo_area = 0;
       /* If we need to quit, quit with cursor_in_echo_area = 0.  */