Mercurial > emacs
diff src/fileio.c @ 70518:b191186433c8
(choose_write_coding_system): Use system_eol_type for
encoding if eol_type is not yet decided.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 May 2006 05:20:16 +0000 |
parents | df847a0b85d2 |
children | e963ced8a1ca 1321f6cfb389 |
line wrap: on
line diff
--- a/src/fileio.c Mon May 08 05:19:42 2006 +0000 +++ b/src/fileio.c Mon May 08 05:20:16 2006 +0000 @@ -4938,6 +4938,8 @@ 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; }