From: Dave Love Date: Fri, 26 May 2000 13:42:03 +0000 (+0000) Subject: (shrink_decoding_region): Initialize eol_conversion. X-Git-Tag: emacs-pretest-21.0.90~3674 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa46990ee09bec1686b19fa8562c376cc2238598;p=emacs.git (shrink_decoding_region): Initialize eol_conversion. --- diff --git a/src/coding.c b/src/coding.c index 1da6a64bb45..64d7e2afed1 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4128,7 +4128,7 @@ shrink_decoding_region (beg, end, coding, str) if (!NILP (CHAR_TABLE_REF (translation_table, i))) break; if (i < 128) - /* Some ASCII character should be tranlsated. We give up + /* Some ASCII character should be translated. We give up shrinking. */ return; } @@ -4149,6 +4149,9 @@ shrink_decoding_region (beg, end, coding, str) endp_orig = endp = begp + *end - *beg; } + eol_conversion = (coding->eol_type == CODING_EOL_CR + || coding->eol_type == CODING_EOL_CRLF); + switch (coding->type) { case coding_type_sjis: