changeset 90391:bcc2042feec2

(choose_write_coding_system): Fix synching with HEAD.
author Kenichi Handa <handa@m17n.org>
date Mon, 15 May 2006 02:45:49 +0000
parents 9b61abfe926b
children 8b24a6ec5090
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Mon May 15 02:45:29 2006 +0000
+++ b/src/fileio.c	Mon May 15 02:45:49 2006 +0000
@@ -4898,10 +4898,8 @@
 	val = raw_text_coding_system (val);
     }
 
+  val = coding_inherit_eol_type (val, Qnil);
   setup_coding_system (val, coding);
-  if (! NILP (val)
-      && VECTORP (CODING_ID_EOL_TYPE (coding->id)))
-    val = AREF (CODING_ID_EOL_TYPE (coding->id), 0);
 
   if (!STRINGP (start) && !NILP (current_buffer->selective_display))
     coding->mode |= CODING_MODE_SELECTIVE_DISPLAY;