Commit 32171635 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Finsert_file_contents): Call Fset_buffer_multibyte

unconfitionally.
parent d599a452
2001-08-27 Gerd Moellmann <gerd@gnu.org>
* fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
unconditionally.
2001-08-24 Gerd Moellmann <gerd@gnu.org>
* keymap.c (access_keymap): Return the cdr of the binding of
......
......@@ -4344,16 +4344,10 @@ actually used.")
|| coding.type == coding_type_raw_text))
{
/* Visiting a file with these coding systems should always make
the buffer unibyte. If we happen to be replacing text in a
multibyte buffer (this happens when reverting an RMAIL
buffer), positions in the buffer, markers etc. may have byte
positions != character positions, so just setting
enable_multibyte_characters to nil doesn't suffice. */
if (!NILP (replace)
&& !NILP (current_buffer->enable_multibyte_characters))
Fset_buffer_multibyte (Qnil);
else
current_buffer->enable_multibyte_characters = Qnil;
the buffer unibyte. The call to Fset_buffer_multibyte
ensures that existing markers etc are converted to unibyte,
too. */
Fset_buffer_multibyte (Qnil);
coding.dst_multibyte = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment