From: Kenichi Handa Date: Sat, 8 Nov 1997 03:05:44 +0000 (+0000) Subject: (encode_terminal_code): Use new macros defined in X-Git-Tag: emacs-20.3~2850 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ca1e6a1391a2e052b519bbc93fa9316e63076220;p=emacs.git (encode_terminal_code): Use new macros defined in coding.h. (write_glyphs): Likewise. --- diff --git a/src/term.c b/src/term.c index 5acd7a57714..eba0461a235 100644 --- a/src/term.c +++ b/src/term.c @@ -828,7 +828,7 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed) 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 @@ write_glyphs (string, len) 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,