aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-08-27 09:15:57 +0000
committerGerd Moellmann2001-08-27 09:15:57 +0000
commit32171635b95099c3cfc28fe0d004c935584655aa (patch)
tree0a49adda60dcc3d7d737c76592c3f72990fb40c1 /src
parentd599a45219667664453fe7bd277e33c55e3a46f7 (diff)
downloademacs-32171635b95099c3cfc28fe0d004c935584655aa.tar.gz
emacs-32171635b95099c3cfc28fe0d004c935584655aa.zip
(Finsert_file_contents): Call Fset_buffer_multibyte
unconfitionally.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c14
2 files changed, 9 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ef43d1d0807..dba6e5b2023 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-08-27 Gerd Moellmann <gerd@gnu.org>
2
3 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
4 unconditionally.
5
12001-08-24 Gerd Moellmann <gerd@gnu.org> 62001-08-24 Gerd Moellmann <gerd@gnu.org>
2 7
3 * keymap.c (access_keymap): Return the cdr of the binding of 8 * keymap.c (access_keymap): Return the cdr of the binding of
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.")
4344 || coding.type == coding_type_raw_text)) 4344 || coding.type == coding_type_raw_text))
4345 { 4345 {
4346 /* Visiting a file with these coding systems should always make 4346 /* Visiting a file with these coding systems should always make
4347 the buffer unibyte. If we happen to be replacing text in a 4347 the buffer unibyte. The call to Fset_buffer_multibyte
4348 multibyte buffer (this happens when reverting an RMAIL 4348 ensures that existing markers etc are converted to unibyte,
4349 buffer), positions in the buffer, markers etc. may have byte 4349 too. */
4350 positions != character positions, so just setting 4350 Fset_buffer_multibyte (Qnil);
4351 enable_multibyte_characters to nil doesn't suffice. */
4352 if (!NILP (replace)
4353 && !NILP (current_buffer->enable_multibyte_characters))
4354 Fset_buffer_multibyte (Qnil);
4355 else
4356 current_buffer->enable_multibyte_characters = Qnil;
4357 coding.dst_multibyte = 0; 4351 coding.dst_multibyte = 0;
4358 } 4352 }
4359 4353