# HG changeset patch # User Kenichi Handa # Date 1064983219 0 # Node ID 12fbcfebb9ad582edb0f259cf2f5f6c026a8ed43 # Parent 4047309fb78f8fab47ef31e9a7fbc99325d4fbc9 (consume_chars): If coding->src_object is nil, don't check annotation. diff -r 4047309fb78f -r 12fbcfebb9ad src/coding.c --- a/src/coding.c Tue Sep 30 23:28:01 2003 +0000 +++ b/src/coding.c Wed Oct 01 04:40:19 2003 +0000 @@ -6019,14 +6019,19 @@ /* Note: composition handling is not yet implemented. */ coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK; - if (coding->common_flags & CODING_ANNOTATE_COMPOSITION_MASK) - stop = stop_composition = pos; + if (NILP (coding->src_object)) + stop = stop_composition = stop_charset = end_pos; else - stop = stop_composition = end_pos; - if (coding->common_flags & CODING_ANNOTATE_CHARSET_MASK) - stop = stop_charset = pos; - else - stop_charset = end_pos; + { + if (coding->common_flags & CODING_ANNOTATE_COMPOSITION_MASK) + stop = stop_composition = pos; + else + stop = stop_composition = end_pos; + if (coding->common_flags & CODING_ANNOTATE_CHARSET_MASK) + stop = stop_charset = pos; + else + stop_charset = end_pos; + } /* Compensate for CRLF and annotation. */ buf_end -= 1 + MAX_ANNOTATION_LENGTH;