diff options
| author | Karl Heuer | 1995-01-13 02:22:54 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-01-13 02:22:54 +0000 |
| commit | 5259c73786e38510a625beff715dcea233480cf7 (patch) | |
| tree | b7aaae68d09e14d6dc0e4470d6f51dc15c52a36e /src | |
| parent | 3d3938e1851677268f6f8624f5dc8642f8403fc8 (diff) | |
| download | emacs-5259c73786e38510a625beff715dcea233480cf7.tar.gz emacs-5259c73786e38510a625beff715dcea233480cf7.zip | |
(printchar, strout): Call message_dolog.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index 8c341aabfc5..c6bc0c59762 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -65,10 +65,16 @@ int print_escape_newlines; | |||
| 65 | 65 | ||
| 66 | Lisp_Object Qprint_escape_newlines; | 66 | Lisp_Object Qprint_escape_newlines; |
| 67 | 67 | ||
| 68 | /* Nonzero means print newline before next minibuffer message. | 68 | /* Nonzero means print newline to stdout before next minibuffer message. |
| 69 | Defined in xdisp.c */ | 69 | Defined in xdisp.c */ |
| 70 | 70 | ||
| 71 | extern int noninteractive_need_newline; | 71 | extern int noninteractive_need_newline; |
| 72 | |||
| 73 | /* Nonzero means print newline to message log before next message. | ||
| 74 | Defined in xdisp.c */ | ||
| 75 | |||
| 76 | extern int message_log_need_newline; | ||
| 77 | |||
| 72 | #ifdef MAX_PRINT_CHARS | 78 | #ifdef MAX_PRINT_CHARS |
| 73 | static int print_chars; | 79 | static int print_chars; |
| 74 | static int max_print; | 80 | static int max_print; |
| @@ -206,12 +212,17 @@ printchar (ch, fun) | |||
| 206 | if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame) | 212 | if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame) |
| 207 | || !message_buf_print) | 213 | || !message_buf_print) |
| 208 | { | 214 | { |
| 215 | if (message_log_need_newline) | ||
| 216 | message_dolog ("", 0, 1); | ||
| 217 | message_log_need_newline = 0; | ||
| 209 | echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); | 218 | echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); |
| 210 | printbufidx = 0; | 219 | printbufidx = 0; |
| 211 | echo_area_glyphs_length = 0; | 220 | echo_area_glyphs_length = 0; |
| 212 | message_buf_print = 1; | 221 | message_buf_print = 1; |
| 213 | } | 222 | } |
| 214 | 223 | ||
| 224 | message_dolog (&ch, 1, 0); | ||
| 225 | message_log_need_newline = 1; | ||
| 215 | if (printbufidx < FRAME_WIDTH (mini_frame) - 1) | 226 | if (printbufidx < FRAME_WIDTH (mini_frame) - 1) |
| 216 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx++] = ch; | 227 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx++] = ch; |
| 217 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; | 228 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; |
| @@ -263,12 +274,17 @@ strout (ptr, size, printcharfun) | |||
| 263 | if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame) | 274 | if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame) |
| 264 | || !message_buf_print) | 275 | || !message_buf_print) |
| 265 | { | 276 | { |
| 277 | if (message_log_need_newline) | ||
| 278 | message_dolog ("", 0, 1); | ||
| 279 | message_log_need_newline = 0; | ||
| 266 | echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); | 280 | echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); |
| 267 | printbufidx = 0; | 281 | printbufidx = 0; |
| 268 | echo_area_glyphs_length = 0; | 282 | echo_area_glyphs_length = 0; |
| 269 | message_buf_print = 1; | 283 | message_buf_print = 1; |
| 270 | } | 284 | } |
| 271 | 285 | ||
| 286 | message_dolog (ptr, i, 0); | ||
| 287 | message_log_need_newline = 1; | ||
| 272 | if (i > FRAME_WIDTH (mini_frame) - printbufidx - 1) | 288 | if (i > FRAME_WIDTH (mini_frame) - printbufidx - 1) |
| 273 | i = FRAME_WIDTH (mini_frame) - printbufidx - 1; | 289 | i = FRAME_WIDTH (mini_frame) - printbufidx - 1; |
| 274 | bcopy (ptr, &FRAME_MESSAGE_BUF (mini_frame) [printbufidx], i); | 290 | bcopy (ptr, &FRAME_MESSAGE_BUF (mini_frame) [printbufidx], i); |