# HG changeset patch # User Kenichi Handa # Date 1020747066 0 # Node ID 478d6f47e263fe433460527c2da3290643038021 # Parent a7b309f729200f1b294a20570fe4d6d6a1c617dc (Finsert_file_contents): Set coding_system instead of val. If the current buffer is multibyte, always call decode_coding_gap. diff -r a7b309f72920 -r 478d6f47e263 src/fileio.c --- a/src/fileio.c Tue May 07 04:50:48 2002 +0000 +++ b/src/fileio.c Tue May 07 04:51:06 2002 +0000 @@ -3802,7 +3802,7 @@ 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 @@ 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))) {