diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-07-26 22:20:51 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-07-26 22:20:51 +0000 |
commit | 2ee81858d3ab976ba9841aa92d7098a1faa5b4fe (patch) | |
tree | 033d057c954ec6b73b144bbbd8a766fa2560ca0f | |
parent | 85d9831247d0b4b39dcecd484991682dccb3f8a5 (diff) | |
download | emacs-2ee81858d3ab976ba9841aa92d7098a1faa5b4fe.tar.gz |
(strout, printchar): Handle minibuffer_auto_raise.
-rw-r--r-- | src/print.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index 41159ae69da..67b30802f94 100644 --- a/src/print.c +++ b/src/print.c @@ -100,6 +100,8 @@ Lisp_Object Vprint_gensym_alist; 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 @@ printchar (ch, fun) 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 @@ strout (ptr, size, printcharfun) 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); |