diff options
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6cda1e39eed..e18ddb1a7aa 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4263,9 +4263,14 @@ by calling `format-decode', which see. */) | |||
| 4263 | if (CODING_FOR_UNIBYTE (&coding) | 4263 | if (CODING_FOR_UNIBYTE (&coding) |
| 4264 | /* Can't do this if part of the buffer might be preserved. */ | 4264 | /* Can't do this if part of the buffer might be preserved. */ |
| 4265 | && NILP (replace)) | 4265 | && NILP (replace)) |
| 4266 | /* Visiting a file with these coding system makes the buffer | 4266 | { |
| 4267 | unibyte. */ | 4267 | /* Visiting a file with these coding system makes the buffer |
| 4268 | bset_enable_multibyte_characters (current_buffer, Qnil); | 4268 | unibyte. */ |
| 4269 | if (inserted > 0) | ||
| 4270 | bset_enable_multibyte_characters (current_buffer, Qnil); | ||
| 4271 | else | ||
| 4272 | Fset_buffer_multibyte (Qnil); | ||
| 4273 | } | ||
| 4269 | } | 4274 | } |
| 4270 | 4275 | ||
| 4271 | coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters)); | 4276 | coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters)); |