diff options
| author | Kenichi Handa | 2003-10-01 04:40:19 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-10-01 04:40:19 +0000 |
| commit | 0b5670c99611768ebce5151356e89d8c01bda8bb (patch) | |
| tree | 249f6742c6858296be0d32698cdc5817d86d58a9 /src/coding.c | |
| parent | fa85a32548087220d0602686d2bcb1a917713b4e (diff) | |
| download | emacs-0b5670c99611768ebce5151356e89d8c01bda8bb.tar.gz emacs-0b5670c99611768ebce5151356e89d8c01bda8bb.zip | |
(consume_chars): If coding->src_object is nil, don't check annotation.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/coding.c b/src/coding.c index 5fc381e80b2..86be1b4020d 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -6019,14 +6019,19 @@ consume_chars (coding) | |||
| 6019 | /* Note: composition handling is not yet implemented. */ | 6019 | /* Note: composition handling is not yet implemented. */ |
| 6020 | coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK; | 6020 | coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK; |
| 6021 | 6021 | ||
| 6022 | if (coding->common_flags & CODING_ANNOTATE_COMPOSITION_MASK) | 6022 | if (NILP (coding->src_object)) |
| 6023 | stop = stop_composition = pos; | 6023 | stop = stop_composition = stop_charset = end_pos; |
| 6024 | else | 6024 | else |
| 6025 | stop = stop_composition = end_pos; | 6025 | { |
| 6026 | if (coding->common_flags & CODING_ANNOTATE_CHARSET_MASK) | 6026 | if (coding->common_flags & CODING_ANNOTATE_COMPOSITION_MASK) |
| 6027 | stop = stop_charset = pos; | 6027 | stop = stop_composition = pos; |
| 6028 | else | 6028 | else |
| 6029 | stop_charset = end_pos; | 6029 | stop = stop_composition = end_pos; |
| 6030 | if (coding->common_flags & CODING_ANNOTATE_CHARSET_MASK) | ||
| 6031 | stop = stop_charset = pos; | ||
| 6032 | else | ||
| 6033 | stop_charset = end_pos; | ||
| 6034 | } | ||
| 6030 | 6035 | ||
| 6031 | /* Compensate for CRLF and annotation. */ | 6036 | /* Compensate for CRLF and annotation. */ |
| 6032 | buf_end -= 1 + MAX_ANNOTATION_LENGTH; | 6037 | buf_end -= 1 + MAX_ANNOTATION_LENGTH; |