# HG changeset patch # User Gerd Moellmann # Date 998572713 0 # Node ID f77e2401ced1e385322bf8cb587359b8af4d2f36 # Parent 62061f9104927e2027d045a0bfc43bc06de4977e (Finsert_file_contents): If VISIT is non-nil, and coding.type is coding_type_no_conversion or coding_type_raw_text, use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is non-nil instead of just setting enable_multibyte_characters in the buffer to nil. diff -r 62061f910492 -r f77e2401ced1 src/fileio.c --- a/src/fileio.c Thu Aug 23 13:11:34 2001 +0000 +++ b/src/fileio.c Thu Aug 23 13:18:33 2001 +0000 @@ -4344,8 +4344,14 @@ { /* Visiting a file with these coding system always make the buffer unibyte. */ - current_buffer->enable_multibyte_characters = Qnil; - coding.dst_multibyte = 0; + if (!NILP (replace) + && !NILP (current_buffer->enable_multibyte_characters)) + Fset_buffer_multibyte (Qnil); + else + { + current_buffer->enable_multibyte_characters = Qnil; + coding.dst_multibyte = 0; + } } if (inserted > 0 || coding.type == coding_type_ccl)