]> git.eshelyaron.com Git - emacs.git/commitdiff
(consume_chars): If coding->src_object is nil, don't check annotation.
authorKenichi Handa <handa@m17n.org>
Wed, 1 Oct 2003 04:40:19 +0000 (04:40 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 1 Oct 2003 04:40:19 +0000 (04:40 +0000)
src/coding.c

index 5fc381e80b2dbf0ce995d930238c01203a54a682..86be1b4020dc23b3501babe27b6ee49f85e13775 100644 (file)
@@ -6019,14 +6019,19 @@ consume_chars (coding)
   /* 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;