Mercurial > emacs
changeset 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 | 7ebead4f6646 |
children | 3731408d78da |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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; }