Mercurial > emacs
changeset 19001:2190c39dc640
(strout, printchar): Handle minibuffer_auto_raise.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 26 Jul 1997 22:20:51 +0000 |
parents | f5d103332d9e |
children | f21881dcd27b |
files | src/print.c |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);