# HG changeset patch # User Richard M. Stallman # Date 869955651 0 # Node ID 2190c39dc64035603a3faff1dd9b53b1bb55d656 # Parent f5d103332d9e067f806f2c25c5beaabcfac2e8a5 (strout, printchar): Handle minibuffer_auto_raise. diff -r f5d103332d9e -r 2190c39dc640 src/print.c --- a/src/print.c Sat Jul 26 22:19:26 1997 +0000 +++ b/src/print.c Sat Jul 26 22:20:51 1997 +0000 @@ -100,6 +100,8 @@ extern int noninteractive_need_newline; +extern int minibuffer_auto_raise; + #ifdef MAX_PRINT_CHARS static int print_chars; static int max_print; @@ -305,6 +307,17 @@ printbufidx = 0; echo_area_glyphs_length = 0; message_buf_print = 1; + + if (minibuffer_auto_raise) + { + Lisp_Object mini_window; + + /* Get the frame containing the minibuffer + that the selected frame is using. */ + mini_window = FRAME_MINIBUF_WINDOW (selected_frame); + + Fraise_frame (WINDOW_FRAME (XWINDOW (mini_window))); + } } message_dolog (str, len, 0); @@ -377,6 +390,17 @@ printbufidx = 0; echo_area_glyphs_length = 0; message_buf_print = 1; + + if (minibuffer_auto_raise) + { + Lisp_Object mini_window; + + /* Get the frame containing the minibuffer + that the selected frame is using. */ + mini_window = FRAME_MINIBUF_WINDOW (selected_frame); + + Fraise_frame (WINDOW_FRAME (XWINDOW (mini_window))); + } } message_dolog (ptr, size, 0);