diff src/fileio.c @ 38967:0c5accb9bd18

(Finsert_file_contents): Call Fset_buffer_multibyte unconfitionally.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 27 Aug 2001 09:15:04 +0000
parents 8328e5ca5f55
children 64125d607a06
line wrap: on
line diff
--- a/src/fileio.c	Mon Aug 27 08:07:20 2001 +0000
+++ b/src/fileio.c	Mon Aug 27 09:15:04 2001 +0000
@@ -4344,16 +4344,10 @@
 	  || 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;
     }