Mercurial > emacs
comparison src/process.c @ 31419:bd258f4dc0fa
(read_process_output): Before inserting the decoded
text in the buffer, adjust the multibyteness.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 07 Sep 2000 01:14:20 +0000 |
parents | d1344c992a9a |
children | b148beb59511 |
comparison
equal
deleted
inserted
replaced
31418:4824d8111061 | 31419:bd258f4dc0fa |
---|---|
3073 } | 3073 } |
3074 carryover = nbytes - coding->consumed; | 3074 carryover = nbytes - coding->consumed; |
3075 bcopy (chars + coding->consumed, XSTRING (p->decoding_buf)->data, | 3075 bcopy (chars + coding->consumed, XSTRING (p->decoding_buf)->data, |
3076 carryover); | 3076 carryover); |
3077 XSETINT (p->decoding_carryover, carryover); | 3077 XSETINT (p->decoding_carryover, carryover); |
3078 /* Adjust the multibyteness of TEXT to that of the buffer. */ | |
3079 if (NILP (current_buffer->enable_multibyte_characters) | |
3080 != ! STRING_MULTIBYTE (text)) | |
3081 text = (STRING_MULTIBYTE (text) | |
3082 ? Fstring_as_unibyte (text) | |
3083 : Fstring_as_multibyte (text)); | |
3078 nbytes = STRING_BYTES (XSTRING (text)); | 3084 nbytes = STRING_BYTES (XSTRING (text)); |
3079 nchars = XSTRING (text)->size; | 3085 nchars = XSTRING (text)->size; |
3080 insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0); | 3086 insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0); |
3081 signal_after_change (before, 0, PT - before); | 3087 signal_after_change (before, 0, PT - before); |
3082 update_compositions (before, PT, CHECK_BORDER); | 3088 update_compositions (before, PT, CHECK_BORDER); |