]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents): Set coding_system instead of
authorKenichi Handa <handa@m17n.org>
Tue, 7 May 2002 04:51:06 +0000 (04:51 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 7 May 2002 04:51:06 +0000 (04:51 +0000)
val.  If the current buffer is multibyte, always call
decode_coding_gap.

src/fileio.c

index 90856d755556eb076623e2e7967551b2719d9a6d..8c4e651455aa2cdc94a1c4c357d3f1336a84bf36 100644 (file)
@@ -3802,7 +3802,7 @@ actually used.  */)
              args[2] = visit, args[3] = beg, args[4] = end, args[5] = replace;
              coding_systems = Ffind_operation_coding_system (6, args);
              if (CONSP (coding_systems))
-               val = XCAR (coding_systems);
+               coding_system = XCAR (coding_systems);
            }
        }
 
@@ -4412,7 +4412,8 @@ actually used.  */)
        current_buffer->enable_multibyte_characters = Qnil;
     }
 
-  if ((CODING_REQUIRE_DETECTION (&coding)
+  if ((! NILP (current_buffer->enable_multibyte_characters)
+       || CODING_REQUIRE_DETECTION (&coding)
        || CODING_REQUIRE_DECODING (&coding))
       && (inserted > 0 || CODING_REQUIRE_FLUSHING (&coding)))
     {