From: Kenichi Handa Date: Thu, 21 May 1998 01:48:52 +0000 (+0000) Subject: (shrink_decoding_region): No short cut by X-Git-Tag: emacs-20.3~911 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aa60dea6179f286e62007c978431c05c08015a5d;p=emacs.git (shrink_decoding_region): No short cut by coding->heading_ascii if eol conversion is necessary. --- 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) return; } - if (coding->heading_ascii >= 0) + eol_conversion = (coding->eol_type != CODING_EOL_LF); + + if ((! eol_conversion) && (coding->heading_ascii >= 0)) /* Detection routine has already found how much we can skip at the head. */ *beg += coding->heading_ascii; @@ -3780,8 +3782,6 @@ shrink_decoding_region (beg, end, coding, str) endp_orig = endp = begp + *end - *beg; } - eol_conversion = (coding->eol_type != CODING_EOL_LF); - switch (coding->type) { case coding_type_emacs_mule: