From: Kenichi Handa Date: Wed, 16 Aug 2006 00:20:53 +0000 (+0000) Subject: (choose_write_coding_system): Use LF for end-of-line X-Git-Tag: emacs-pretest-22.0.90~990 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=29cbc4829462914df43038b05711b71aad6e570a;p=emacs.git (choose_write_coding_system): Use LF for end-of-line in auto-saving. --- diff --git a/src/ChangeLog b/src/ChangeLog index 936f8a2546c..58929cc40d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-08-16 Kenichi Handa + + * fileio.c (choose_write_coding_system): Use LF for end-of-line + in auto-saving. + 2006-08-15 Chong Yidong * keyboard.c (read_char): Don't change idle timer state at all if diff --git a/src/fileio.c b/src/fileio.c index d26b2808726..4a39e7ffa19 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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))