diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-08-27 09:15:57 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-08-27 09:15:57 +0000 |
commit | 32171635b95099c3cfc28fe0d004c935584655aa (patch) | |
tree | 0a49adda60dcc3d7d737c76592c3f72990fb40c1 /src/fileio.c | |
parent | d599a45219667664453fe7bd277e33c55e3a46f7 (diff) | |
download | emacs-32171635b95099c3cfc28fe0d004c935584655aa.tar.gz |
(Finsert_file_contents): Call Fset_buffer_multibyte
unconfitionally.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/fileio.c b/src/fileio.c index c9fe5834060..39850dcc45c 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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; } |