Mercurial > emacs
comparison src/process.c @ 32395:11b8c07e5fed
(read_process_output): Cancel previous change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 11 Oct 2000 23:56:30 +0000 |
parents | 8acf0e6e062a |
children | 21acd0c60f5d |
comparison
equal
deleted
inserted
replaced
32394:49330b52b578 | 32395:11b8c07e5fed |
---|---|
3084 /* If the output marker is outside of the visible region, save | 3084 /* If the output marker is outside of the visible region, save |
3085 the restriction and widen. */ | 3085 the restriction and widen. */ |
3086 if (! (BEGV <= PT && PT <= ZV)) | 3086 if (! (BEGV <= PT && PT <= ZV)) |
3087 Fwiden (); | 3087 Fwiden (); |
3088 | 3088 |
3089 /* Insert before markers in case we are inserting where | |
3090 the buffer's mark is, and the user's next command is Meta-y. */ | |
3091 text = decode_coding_string (make_unibyte_string (chars, nbytes), | 3089 text = decode_coding_string (make_unibyte_string (chars, nbytes), |
3092 coding, 0); | 3090 coding, 0); |
3093 Vlast_coding_system_used = coding->symbol; | 3091 Vlast_coding_system_used = coding->symbol; |
3094 /* A new coding system might be found. See the comment in the | 3092 /* A new coding system might be found. See the comment in the |
3095 similar code in the previous `if' block. */ | 3093 similar code in the previous `if' block. */ |
3110 XSETINT (p->decoding_carryover, carryover); | 3108 XSETINT (p->decoding_carryover, carryover); |
3111 /* Adjust the multibyteness of TEXT to that of the buffer. */ | 3109 /* Adjust the multibyteness of TEXT to that of the buffer. */ |
3112 if (NILP (current_buffer->enable_multibyte_characters) | 3110 if (NILP (current_buffer->enable_multibyte_characters) |
3113 != ! STRING_MULTIBYTE (text)) | 3111 != ! STRING_MULTIBYTE (text)) |
3114 text = (STRING_MULTIBYTE (text) | 3112 text = (STRING_MULTIBYTE (text) |
3115 ? string_make_unibyte (text) | 3113 ? Fstring_as_unibyte (text) |
3116 : string_make_multibyte (text)); | 3114 : Fstring_as_multibyte (text)); |
3117 nbytes = STRING_BYTES (XSTRING (text)); | 3115 nbytes = STRING_BYTES (XSTRING (text)); |
3118 nchars = XSTRING (text)->size; | 3116 nchars = XSTRING (text)->size; |
3117 /* Insert before markers in case we are inserting where | |
3118 the buffer's mark is, and the user's next command is Meta-y. */ | |
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); |
3122 | 3122 |
3123 set_marker_both (p->mark, p->buffer, PT, PT_BYTE); | 3123 set_marker_both (p->mark, p->buffer, PT, PT_BYTE); |