]> git.eshelyaron.com Git - emacs.git/commitdiff
(choose_write_coding_system): Use system_eol_type for
authorKenichi Handa <handa@m17n.org>
Mon, 8 May 2006 05:20:16 +0000 (05:20 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 8 May 2006 05:20:16 +0000 (05:20 +0000)
encoding if eol_type is not yet decided.

src/fileio.c

index 14cec5de76544129204c04b8dcbdf93b7c8505bd..422f9d8dfc9fd7b654ebf794ed236cfe9c189585 100644 (file)
@@ -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;
 }