comparison src/process.c @ 32371:8acf0e6e062a

(read_process_output): Fix previous change. Adjust multibyteness of text to insert in a buffer by make_string_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
author Kenichi Handa <handa@m17n.org>
date Wed, 11 Oct 2000 01:20:59 +0000
parents 924ecf698ac3
children 11b8c07e5fed
comparison
equal deleted inserted replaced
32370:ddc96d4efd63 32371:8acf0e6e062a
3110 XSETINT (p->decoding_carryover, carryover); 3110 XSETINT (p->decoding_carryover, carryover);
3111 /* Adjust the multibyteness of TEXT to that of the buffer. */ 3111 /* Adjust the multibyteness of TEXT to that of the buffer. */
3112 if (NILP (current_buffer->enable_multibyte_characters) 3112 if (NILP (current_buffer->enable_multibyte_characters)
3113 != ! STRING_MULTIBYTE (text)) 3113 != ! STRING_MULTIBYTE (text))
3114 text = (STRING_MULTIBYTE (text) 3114 text = (STRING_MULTIBYTE (text)
3115 ? Fstring_as_unibyte (text) 3115 ? string_make_unibyte (text)
3116 : Fstring_as_multibyte (text)); 3116 : string_make_multibyte (text));
3117 nbytes = STRING_BYTES (XSTRING (text)); 3117 nbytes = STRING_BYTES (XSTRING (text));
3118 nchars = XSTRING (text)->size; 3118 nchars = XSTRING (text)->size;
3119 insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0); 3119 insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0);
3120 signal_after_change (before, 0, PT - before); 3120 signal_after_change (before, 0, PT - before);
3121 update_compositions (before, PT, CHECK_BORDER); 3121 update_compositions (before, PT, CHECK_BORDER);