aboutsummaryrefslogtreecommitdiffstats
path: root/src/print.c
diff options
context:
space:
mode:
authorKarl Heuer1995-01-27 19:30:46 +0000
committerKarl Heuer1995-01-27 19:30:46 +0000
commitaee72e4fb5e8b2cc447704430ae2fe4ee0e4ab87 (patch)
tree3cff3781bf9ccfbdf222dbadea933bf8245e8f35 /src/print.c
parent3c6595e0b2b95d430f945b86abc265d3fba39684 (diff)
downloademacs-aee72e4fb5e8b2cc447704430ae2fe4ee0e4ab87.tar.gz
emacs-aee72e4fb5e8b2cc447704430ae2fe4ee0e4ab87.zip
(printchar, strout): Use message_log_maybe_newline.
Leave all of the newline bookkeeping to message_dolog.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/print.c b/src/print.c
index 8f8b6090595..c276a2d7eda 100644
--- a/src/print.c
+++ b/src/print.c
@@ -70,11 +70,6 @@ Lisp_Object Qprint_escape_newlines;
70 70
71extern int noninteractive_need_newline; 71extern int noninteractive_need_newline;
72 72
73/* Nonzero means print newline to message log before next message.
74 Defined in xdisp.c */
75
76extern int message_log_need_newline;
77
78#ifdef MAX_PRINT_CHARS 73#ifdef MAX_PRINT_CHARS
79static int print_chars; 74static int print_chars;
80static int max_print; 75static int max_print;
@@ -212,9 +207,7 @@ printchar (ch, fun)
212 if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame) 207 if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame)
213 || !message_buf_print) 208 || !message_buf_print)
214 { 209 {
215 if (message_log_need_newline) 210 message_log_maybe_newline ();
216 message_dolog ("", 0, 1);
217 message_log_need_newline = 0;
218 echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); 211 echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame);
219 printbufidx = 0; 212 printbufidx = 0;
220 echo_area_glyphs_length = 0; 213 echo_area_glyphs_length = 0;
@@ -222,7 +215,6 @@ printchar (ch, fun)
222 } 215 }
223 216
224 message_dolog (&ch, 1, 0); 217 message_dolog (&ch, 1, 0);
225 message_log_need_newline = 1;
226 if (printbufidx < FRAME_WIDTH (mini_frame) - 1) 218 if (printbufidx < FRAME_WIDTH (mini_frame) - 1)
227 FRAME_MESSAGE_BUF (mini_frame)[printbufidx++] = ch; 219 FRAME_MESSAGE_BUF (mini_frame)[printbufidx++] = ch;
228 FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; 220 FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0;
@@ -274,9 +266,7 @@ strout (ptr, size, printcharfun)
274 if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame) 266 if (echo_area_glyphs != FRAME_MESSAGE_BUF (mini_frame)
275 || !message_buf_print) 267 || !message_buf_print)
276 { 268 {
277 if (message_log_need_newline) 269 message_log_maybe_newline ();
278 message_dolog ("", 0, 1);
279 message_log_need_newline = 0;
280 echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); 270 echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame);
281 printbufidx = 0; 271 printbufidx = 0;
282 echo_area_glyphs_length = 0; 272 echo_area_glyphs_length = 0;
@@ -284,7 +274,6 @@ strout (ptr, size, printcharfun)
284 } 274 }
285 275
286 message_dolog (ptr, i, 0); 276 message_dolog (ptr, i, 0);
287 message_log_need_newline = 1;
288 if (i > FRAME_WIDTH (mini_frame) - printbufidx - 1) 277 if (i > FRAME_WIDTH (mini_frame) - printbufidx - 1)
289 i = FRAME_WIDTH (mini_frame) - printbufidx - 1; 278 i = FRAME_WIDTH (mini_frame) - printbufidx - 1;
290 bcopy (ptr, &FRAME_MESSAGE_BUF (mini_frame) [printbufidx], i); 279 bcopy (ptr, &FRAME_MESSAGE_BUF (mini_frame) [printbufidx], i);