Fix visiting files with raw-text
* src/fileio.c (Finsert_file_contents): Fix setting buffer unibyte when some stuff was actually read. (Bug#22162)
This commit is contained in:
parent
93b1067949
commit
25e461c1c8
1 changed files with 4 additions and 1 deletions
|
@ -4265,7 +4265,10 @@ by calling `format-decode', which see. */)
|
|||
&& NILP (replace))
|
||||
/* Visiting a file with these coding system makes the buffer
|
||||
unibyte. */
|
||||
Fset_buffer_multibyte (Qnil);
|
||||
if (inserted > 0)
|
||||
bset_enable_multibyte_characters (current_buffer, Qnil);
|
||||
else
|
||||
Fset_buffer_multibyte (Qnil);
|
||||
}
|
||||
|
||||
coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters));
|
||||
|
|
Loading…
Add table
Reference in a new issue