; * src/fileio.c (Finsert_file_contents): Avoid compiler warning.
This commit is contained in:
parent
c8d3759f90
commit
3842f1f401
1 changed files with 8 additions and 6 deletions
14
src/fileio.c
14
src/fileio.c
|
@ -4263,12 +4263,14 @@ by calling `format-decode', which see. */)
|
|||
if (CODING_FOR_UNIBYTE (&coding)
|
||||
/* Can't do this if part of the buffer might be preserved. */
|
||||
&& NILP (replace))
|
||||
/* Visiting a file with these coding system makes the buffer
|
||||
unibyte. */
|
||||
if (inserted > 0)
|
||||
bset_enable_multibyte_characters (current_buffer, Qnil);
|
||||
else
|
||||
Fset_buffer_multibyte (Qnil);
|
||||
{
|
||||
/* Visiting a file with these coding system makes the buffer
|
||||
unibyte. */
|
||||
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