diff options
| author | Richard M. Stallman | 1997-07-26 22:20:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-26 22:20:51 +0000 |
| commit | aec2b95b437c14c890d0483b7f54365c9bba6a63 (patch) | |
| tree | 455a383c028809a5642769d8cba8025a146fc365 /src | |
| parent | d78f466fffb89144555fab7d3e40856ec8759cf9 (diff) | |
| download | emacs-aec2b95b437c14c890d0483b7f54365c9bba6a63.tar.gz emacs-aec2b95b437c14c890d0483b7f54365c9bba6a63.zip | |
(strout, printchar): Handle minibuffer_auto_raise.
Diffstat (limited to 'src')
| -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; | |||
| 100 | 100 | ||
| 101 | extern int noninteractive_need_newline; | 101 | extern int noninteractive_need_newline; |
| 102 | 102 | ||
| 103 | extern int minibuffer_auto_raise; | ||
| 104 | |||
| 103 | #ifdef MAX_PRINT_CHARS | 105 | #ifdef MAX_PRINT_CHARS |
| 104 | static int print_chars; | 106 | static int print_chars; |
| 105 | static int max_print; | 107 | static int max_print; |
| @@ -305,6 +307,17 @@ printchar (ch, fun) | |||
| 305 | printbufidx = 0; | 307 | printbufidx = 0; |
| 306 | echo_area_glyphs_length = 0; | 308 | echo_area_glyphs_length = 0; |
| 307 | message_buf_print = 1; | 309 | message_buf_print = 1; |
| 310 | |||
| 311 | if (minibuffer_auto_raise) | ||
| 312 | { | ||
| 313 | Lisp_Object mini_window; | ||
| 314 | |||
| 315 | /* Get the frame containing the minibuffer | ||
| 316 | that the selected frame is using. */ | ||
| 317 | mini_window = FRAME_MINIBUF_WINDOW (selected_frame); | ||
| 318 | |||
| 319 | Fraise_frame (WINDOW_FRAME (XWINDOW (mini_window))); | ||
| 320 | } | ||
| 308 | } | 321 | } |
| 309 | 322 | ||
| 310 | message_dolog (str, len, 0); | 323 | message_dolog (str, len, 0); |
| @@ -377,6 +390,17 @@ strout (ptr, size, printcharfun) | |||
| 377 | printbufidx = 0; | 390 | printbufidx = 0; |
| 378 | echo_area_glyphs_length = 0; | 391 | echo_area_glyphs_length = 0; |
| 379 | message_buf_print = 1; | 392 | message_buf_print = 1; |
| 393 | |||
| 394 | if (minibuffer_auto_raise) | ||
| 395 | { | ||
| 396 | Lisp_Object mini_window; | ||
| 397 | |||
| 398 | /* Get the frame containing the minibuffer | ||
| 399 | that the selected frame is using. */ | ||
| 400 | mini_window = FRAME_MINIBUF_WINDOW (selected_frame); | ||
| 401 | |||
| 402 | Fraise_frame (WINDOW_FRAME (XWINDOW (mini_window))); | ||
| 403 | } | ||
| 380 | } | 404 | } |
| 381 | 405 | ||
| 382 | message_dolog (ptr, size, 0); | 406 | message_dolog (ptr, size, 0); |