diff options
author | Kenichi Handa <handa@m17n.org> | 2006-04-13 04:58:07 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2006-04-13 04:58:07 +0000 |
commit | 73ec0f8900908f70f8b5daafc7f114f6e53a1ae2 (patch) | |
tree | d0e377e6a728afed14c7e4c1f9cb8709f9bc92f6 /src/coding.c | |
parent | 9642847f36380bc6c39bf8d19b907266d72fbd61 (diff) | |
download | emacs-73ec0f8900908f70f8b5daafc7f114f6e53a1ae2.tar.gz |
(shrink_encoding_region): If eol_type is not yet decided and
system_eol_type is not LF, don't shrink.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 5fb4c202b85..ba121df242e 100644 --- a/src/coding.c +++ b/src/coding.c @@ -5256,6 +5256,8 @@ shrink_encoding_region (beg, end, coding, str) 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. */ |