• Richard M. Stallman's avatar
    When printing into a buffer, generate all the text · 6fec5601
    Richard M. Stallman authored
    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.
    6fec5601
print.c 34.6 KB