]> git.eshelyaron.com Git - emacs.git/commitdiff
(choose_write_coding_system): Use LF for end-of-line
authorKenichi Handa <handa@m17n.org>
Wed, 16 Aug 2006 00:20:53 +0000 (00:20 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 16 Aug 2006 00:20:53 +0000 (00:20 +0000)
in auto-saving.

src/ChangeLog
src/fileio.c

index 936f8a2546c8c4b930edd3a0c916990cd96198e8..58929cc40d2850c03ab952caa2b9961f7e191ee3 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-16  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (choose_write_coding_system): Use LF for end-of-line
+       in auto-saving.
+
 2006-08-15  Chong Yidong  <cyd@stupidchicken.com>
 
        * keyboard.c (read_char): Don't change idle timer state at all if
index d26b28087263fcdbcbed0172795ecd29cf449047..4a39e7ffa192984f3c401cb363e4cf17f91dd803 100644 (file)
@@ -4845,6 +4845,8 @@ choose_write_coding_system (start, end, filename,
       /* ... but with the special flag to indicate not to strip off
         leading code of eight-bit-control chars.  */
       coding->flags = 1;
+      /* We force LF for end-of-line because that is faster.  */
+      coding->eol_type = CODING_EOL_LF;
       goto done_setup_coding;
     }
   else if (!NILP (Vcoding_system_for_write))