diff options
| author | Kenichi Handa | 1998-05-21 01:48:52 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-05-21 01:48:52 +0000 |
| commit | aa60dea6179f286e62007c978431c05c08015a5d (patch) | |
| tree | e008361c251ec2caa5eb6ebae4649be5e2ca704a /src | |
| parent | aabd38eca1005c0c7eb5c4d381d6432e2ec3816b (diff) | |
| download | emacs-aa60dea6179f286e62007c978431c05c08015a5d.tar.gz emacs-aa60dea6179f286e62007c978431c05c08015a5d.zip | |
(shrink_decoding_region): No short cut by
coding->heading_ascii if eol conversion is necessary.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c index c04b14ade62..29477c75e5b 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -3764,7 +3764,9 @@ shrink_decoding_region (beg, end, coding, str) | |||
| 3764 | return; | 3764 | return; |
| 3765 | } | 3765 | } |
| 3766 | 3766 | ||
| 3767 | if (coding->heading_ascii >= 0) | 3767 | eol_conversion = (coding->eol_type != CODING_EOL_LF); |
| 3768 | |||
| 3769 | if ((! eol_conversion) && (coding->heading_ascii >= 0)) | ||
| 3768 | /* Detection routine has already found how much we can skip at the | 3770 | /* Detection routine has already found how much we can skip at the |
| 3769 | head. */ | 3771 | head. */ |
| 3770 | *beg += coding->heading_ascii; | 3772 | *beg += coding->heading_ascii; |
| @@ -3780,8 +3782,6 @@ shrink_decoding_region (beg, end, coding, str) | |||
| 3780 | endp_orig = endp = begp + *end - *beg; | 3782 | endp_orig = endp = begp + *end - *beg; |
| 3781 | } | 3783 | } |
| 3782 | 3784 | ||
| 3783 | eol_conversion = (coding->eol_type != CODING_EOL_LF); | ||
| 3784 | |||
| 3785 | switch (coding->type) | 3785 | switch (coding->type) |
| 3786 | { | 3786 | { |
| 3787 | case coding_type_emacs_mule: | 3787 | case coding_type_emacs_mule: |