From 452dd0bed5776a7d25ce75adfbf3bdd2fd14a371 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 8 May 2006 05:20:16 +0000 Subject: [PATCH] (choose_write_coding_system): Use system_eol_type for encoding if eol_type is not yet decided. --- src/fileio.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5