Mercurial > emacs
diff src/coding.c @ 69993:795b4e48c10e
(shrink_encoding_region): If eol_type is not yet decided and
system_eol_type is not LF, don't shrink.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Thu, 13 Apr 2006 04:57:52 +0000 |
| parents | c0ec9365428f |
| children | d4a5619e5025 |
line wrap: on
line diff
--- a/src/coding.c Thu Apr 13 04:39:20 2006 +0000 +++ b/src/coding.c Thu Apr 13 04:57:52 2006 +0000 @@ -5256,6 +5256,8 @@ if (coding->type == coding_type_ccl || coding->eol_type == CODING_EOL_CRLF || coding->eol_type == CODING_EOL_CR + || (coding->eol_type == CODING_EOL_UNDECIDED + && system_eol_type != CODING_EOL_LF) || (coding->cmp_data && coding->cmp_data->used > 0)) { /* We can't skip any data. */
