# HG changeset patch # User Kenichi Handa # Date 878958344 0 # Node ID 1e30a8b4ff3f9db9404af6e5e154d719629198ec # Parent 9823d1d05083efa7b9238c37edb8cb97dfd38b5a (encode_terminal_code): Use new macros defined in coding.h. (write_glyphs): Likewise. diff -r 9823d1d05083 -r 1e30a8b4ff3f src/term.c --- a/src/term.c Fri Nov 07 23:32:50 1997 +0000 +++ b/src/term.c Sat Nov 08 03:05:44 1997 +0000 @@ -828,7 +828,7 @@ buf = GLYPH_STRING (tbase, g); } - if (CODING_MAY_REQUIRE_NO_CONVERSION (&terminal_coding)) + if (! CODING_REQUIRE_ENCODING (&terminal_coding)) /* We had better avoid sending Emacs' internal code to terminal. */ produced = encode_coding (&safe_terminal_coding, buf, dst, @@ -903,7 +903,7 @@ string += consumed; } /* We may have to output some codes to terminate the writing. */ - if (!CODING_MAY_REQUIRE_NO_CONVERSION (&terminal_coding)) + if (CODING_REQUIRE_FLUSHING (&terminal_coding)) { terminal_coding.last_block = 1; produced = encode_coding (&terminal_coding, (char *)0, conversion_buffer,