]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents, Fwrite_region): Do not perform
authorKenichi Handa <handa@m17n.org>
Thu, 27 Feb 1997 08:01:34 +0000 (08:01 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 27 Feb 1997 08:01:34 +0000 (08:01 +0000)
character code conversion if enable-multibyte-characters is nil.

src/fileio.c

index c7c0111dbadc71ba1afbca5d806d0bbe439ba937..b925c18c41b9e5c038b302148ee2c3ee5a4079e9 100644 (file)
@@ -3059,7 +3059,9 @@ This does code conversion according to the value of\n\
   /* Decide the coding-system of the file.  */
   {
     Lisp_Object val = Vcoding_system_for_read;
-    if (NILP (val))
+    if (NILP (current_buffer->enable_multibyte_characters))
+      val = Qnil;
+    else if (NILP (val))
       {
        Lisp_Object args[6], coding_systems;
 
@@ -3622,7 +3624,7 @@ This does code conversion according to the value of\n\
   {
     Lisp_Object val;
 
-    if (auto_saving)
+    if (auto_saving || NILP (current_buffer->enable_multibyte_characters))
       val = Qnil;
     else if (!NILP (Vcoding_system_for_write))
       val = Vcoding_system_for_write;