comparison src/fileio.c @ 89504:e1159b1e5142

(Finsert_file_contents): Call setup_coding_system in the case of auto saving.
author Kenichi Handa <handa@m17n.org>
date Tue, 16 Sep 2003 00:24:21 +0000
parents 2f877ed80fa6
children 1bd1640fc949
comparison
equal deleted inserted replaced
89503:684f87e17d28 89504:e1159b1e5142
3786 XSETINT (end, READ_BUF_SIZE); 3786 XSETINT (end, READ_BUF_SIZE);
3787 } 3787 }
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
3795 because we can't use an optimized method for handling 3800 because we can't use an optimized method for handling
3796 `coding:' tag if the current buffer is not empty. */ 3801 `coding:' tag if the current buffer is not empty. */