Mercurial > emacs
changeset 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 | 2e639bf3cd9f |
children | daa3b925c055 |
files | src/coding.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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. */