changeset 22613:285822d24189

(Finsert_file_contents): Call setup_raw_text_coding_system.
author Kenichi Handa <handa@m17n.org>
date Fri, 26 Jun 1998 03:29:15 +0000
parents 6def3da74c7c
children 83990ce5f58c
files src/fileio.c
diffstat 1 files changed, 6 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Fri Jun 26 01:27:40 1998 +0000
+++ b/src/fileio.c	Fri Jun 26 03:29:15 1998 +0000
@@ -3501,15 +3501,9 @@
 
       if (NILP (Vcoding_system_for_read)
 	  && NILP (current_buffer->enable_multibyte_characters))
-	{
-	  /* We must suppress all text conversion except for end-of-line
-	     conversion.  */
-	  int eol_type;
-
-	  eol_type = coding.eol_type;
-	  setup_coding_system (Qraw_text, &coding);
-	  coding.eol_type = eol_type;
-	}
+	/* We must suppress all text conversion except for end-of-line
+	   conversion.  */
+	setup_raw_text_coding_system (&coding);
 
       coding_system_decided = 1;
     }
@@ -4023,15 +4017,9 @@
 
 	  if (NILP (Vcoding_system_for_read)
 	      && NILP (current_buffer->enable_multibyte_characters))
-	    {
-	      /* We must suppress all text conversion except for
-		 end-of-line conversion.  */
-	      int eol_type;
-
-	      eol_type = coding.eol_type;
-	      setup_coding_system (Qraw_text, &coding);
-	      coding.eol_type = eol_type;
-	    }
+	    /* We must suppress all text conversion except for
+	       end-of-line conversion.  */
+	    setup_raw_text_coding_system (&coding);
 	}
 
       if (CODING_MAY_REQUIRE_DECODING (&coding))