diff options
author | Kenichi Handa <handa@m17n.org> | 2006-05-08 05:20:16 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2006-05-08 05:20:16 +0000 |
commit | 452dd0bed5776a7d25ce75adfbf3bdd2fd14a371 (patch) | |
tree | a2b8426e22fc6900687f3e5c75ecd0e7aaf0fc3a /src/fileio.c | |
parent | 6b62b48dbd991734484b78bd7001eac9c9dbbc66 (diff) | |
download | emacs-452dd0bed5776a7d25ce75adfbf3bdd2fd14a371.tar.gz emacs-452dd0bed5776a7d25ce75adfbf3bdd2fd14a371.tar.bz2 emacs-452dd0bed5776a7d25ce75adfbf3bdd2fd14a371.zip |
(choose_write_coding_system): Use system_eol_type for
encoding if eol_type is not yet decided.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 14cec5de765..422f9d8dfc9 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4938,6 +4938,8 @@ choose_write_coding_system (start, end, filename, setup_coding_system (Fcheck_coding_system (val), coding); done_setup_coding: + if (coding->eol_type == CODING_EOL_UNDECIDED) + coding->eol_type = system_eol_type; if (!STRINGP (start) && !NILP (current_buffer->selective_display)) coding->mode |= CODING_MODE_SELECTIVE_DISPLAY; } |