aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-05-07 04:51:06 +0000
committerKenichi Handa2002-05-07 04:51:06 +0000
commit82a2ce2c4dda7506706dab16be925161d9693612 (patch)
tree6967672987f41e8728712c19d152f902bbbbabad /src
parent2c78b7e182a6bf208e0f5b0de2f7be9d1b9a3f22 (diff)
downloademacs-82a2ce2c4dda7506706dab16be925161d9693612.tar.gz
emacs-82a2ce2c4dda7506706dab16be925161d9693612.zip
(Finsert_file_contents): Set coding_system instead of
val. If the current buffer is multibyte, always call decode_coding_gap.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c5
1 files 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. */)
3802 args[2] = visit, args[3] = beg, args[4] = end, args[5] = replace; 3802 args[2] = visit, args[3] = beg, args[4] = end, args[5] = replace;
3803 coding_systems = Ffind_operation_coding_system (6, args); 3803 coding_systems = Ffind_operation_coding_system (6, args);
3804 if (CONSP (coding_systems)) 3804 if (CONSP (coding_systems))
3805 val = XCAR (coding_systems); 3805 coding_system = XCAR (coding_systems);
3806 } 3806 }
3807 } 3807 }
3808 3808
@@ -4412,7 +4412,8 @@ actually used. */)
4412 current_buffer->enable_multibyte_characters = Qnil; 4412 current_buffer->enable_multibyte_characters = Qnil;
4413 } 4413 }
4414 4414
4415 if ((CODING_REQUIRE_DETECTION (&coding) 4415 if ((! NILP (current_buffer->enable_multibyte_characters)
4416 || CODING_REQUIRE_DETECTION (&coding)
4416 || CODING_REQUIRE_DECODING (&coding)) 4417 || CODING_REQUIRE_DECODING (&coding))
4417 && (inserted > 0 || CODING_REQUIRE_FLUSHING (&coding))) 4418 && (inserted > 0 || CODING_REQUIRE_FLUSHING (&coding)))
4418 { 4419 {