diff options
| author | K. Handa | 2016-01-03 17:53:43 +0900 |
|---|---|---|
| committer | K. Handa | 2016-01-03 17:53:43 +0900 |
| commit | fb6d826c69939c2d016c1b824d4e9bcb53d9e643 (patch) | |
| tree | b9ce862d6cbe25e740203421984df21e4cbadbf4 /src/fileio.c | |
| parent | 536f48e9a2251b9e654ea974bd90ff2f40218753 (diff) | |
| parent | 91917dd58ec5278e555b9c693a830749083e8f89 (diff) | |
| download | emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.gz emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
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)); |