mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-02 20:16:25 +00:00
(Finsert_file_contents): If VISIT is non-nil, and
coding.type is coding_type_no_conversion or coding_type_raw_text, use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is non-nil instead of just setting enable_multibyte_characters in the buffer to nil.
This commit is contained in:
parent
4063fff35d
commit
1f83434377
@ -4344,9 +4344,15 @@ actually used.")
|
||||
{
|
||||
/* Visiting a file with these coding system always make the buffer
|
||||
unibyte. */
|
||||
if (!NILP (replace)
|
||||
&& !NILP (current_buffer->enable_multibyte_characters))
|
||||
Fset_buffer_multibyte (Qnil);
|
||||
else
|
||||
{
|
||||
current_buffer->enable_multibyte_characters = Qnil;
|
||||
coding.dst_multibyte = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (inserted > 0 || coding.type == coding_type_ccl)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user