From 82a2ce2c4dda7506706dab16be925161d9693612 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 7 May 2002 04:51:06 +0000 Subject: [PATCH] (Finsert_file_contents): Set coding_system instead of val. If the current buffer is multibyte, always call decode_coding_gap. --- src/fileio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index 90856d75555..8c4e651455a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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))) { -- 2.39.5