diff options
| author | Kenichi Handa | 2003-09-16 00:24:21 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-09-16 00:24:21 +0000 |
| commit | 5560aecd3ef9f15caba7a3344ffe61aa904470c5 (patch) | |
| tree | 47b680f8caeae5678267cb8b40c34424be585fa5 /src | |
| parent | f37ee46c60cc8971fbe7ec547d92d8057d5f322b (diff) | |
| download | emacs-5560aecd3ef9f15caba7a3344ffe61aa904470c5.tar.gz emacs-5560aecd3ef9f15caba7a3344ffe61aa904470c5.zip | |
(Finsert_file_contents): Call setup_coding_system in
the case of auto saving.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 1103a51bd65..6476ce21264 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3788,7 +3788,12 @@ actually used. */) | |||
| 3788 | } | 3788 | } |
| 3789 | 3789 | ||
| 3790 | if (EQ (Vcoding_system_for_read, Qauto_save_coding)) | 3790 | if (EQ (Vcoding_system_for_read, Qauto_save_coding)) |
| 3791 | coding_system = Qutf_8_emacs; | 3791 | { |
| 3792 | coding_system = Qutf_8_emacs; | ||
| 3793 | setup_coding_system (coding_system, &coding); | ||
| 3794 | /* Ensure we set Vlast_coding_system_used. */ | ||
| 3795 | set_coding_system = 1; | ||
| 3796 | } | ||
| 3792 | else if (BEG < Z) | 3797 | else if (BEG < Z) |
| 3793 | { | 3798 | { |
| 3794 | /* Decide the coding system to use for reading the file now | 3799 | /* Decide the coding system to use for reading the file now |