When printing into a buffer, generate all the text
commit6fec5601a25f970f3f03b591c297b3521fd22243
authorRichard M. Stallman <rms@gnu.org>
Tue, 30 Jul 1996 18:51:50 +0000 (30 18:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 30 Jul 1996 18:51:50 +0000 (30 18:51 +0000)
treec3268246c48ac68ab30613f0d0be18da4f962560
parent3b9792585175a2b286024337d3bb31878d6e72d2
When printing into a buffer, generate all the text
first, then insert it all at once.
(print_buffer): New variable.
(print_buffer_size, print_buffer_pos): New variables.
(PRINTPREPARE): Allocate print_buffer.
(PRINTFINISH): Free print_buffer after inserting its contents.
(printchar, strout): Output into print_buffer.
(print_string): If printcharfun is nil, use strout.
src/print.c