aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-11-08 03:05:44 +0000
committerKenichi Handa1997-11-08 03:05:44 +0000
commitca1e6a1391a2e052b519bbc93fa9316e63076220 (patch)
treeca283256b5c755891e25994215af65aca291a452
parent620bca4973b76ecde2cbeedc7ac06afcc712f8f3 (diff)
downloademacs-ca1e6a1391a2e052b519bbc93fa9316e63076220.tar.gz
emacs-ca1e6a1391a2e052b519bbc93fa9316e63076220.zip
(encode_terminal_code): Use new macros defined in
coding.h. (write_glyphs): Likewise.
-rw-r--r--src/term.c4
1 files changed, 2 insertions, 2 deletions
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)
828 buf = GLYPH_STRING (tbase, g); 828 buf = GLYPH_STRING (tbase, g);
829 } 829 }
830 830
831 if (CODING_MAY_REQUIRE_NO_CONVERSION (&terminal_coding)) 831 if (! CODING_REQUIRE_ENCODING (&terminal_coding))
832 /* We had better avoid sending Emacs' internal code to 832 /* We had better avoid sending Emacs' internal code to
833 terminal. */ 833 terminal. */
834 produced = encode_coding (&safe_terminal_coding, buf, dst, 834 produced = encode_coding (&safe_terminal_coding, buf, dst,
@@ -903,7 +903,7 @@ write_glyphs (string, len)
903 string += consumed; 903 string += consumed;
904 } 904 }
905 /* We may have to output some codes to terminate the writing. */ 905 /* We may have to output some codes to terminate the writing. */
906 if (!CODING_MAY_REQUIRE_NO_CONVERSION (&terminal_coding)) 906 if (CODING_REQUIRE_FLUSHING (&terminal_coding))
907 { 907 {
908 terminal_coding.last_block = 1; 908 terminal_coding.last_block = 1;
909 produced = encode_coding (&terminal_coding, (char *)0, conversion_buffer, 909 produced = encode_coding (&terminal_coding, (char *)0, conversion_buffer,