1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00

(Finsert_file_contents): Set Vlast_coding_system_used

before calling Vafter_insert_file_functions.
(Fwrite_region): Set Vlast_coding_system_used after deciding a
coding system to be used for encoding.
This commit is contained in:
Kenichi Handa 1997-12-09 04:12:03 +00:00
parent ee11256720
commit b56567b5fd

View file

@ -3842,6 +3842,8 @@ This does code conversion according to the value of\n\
&& (NILP (visit) || !NILP (replace)))
signal_after_change (PT, 0, inserted);
Vlast_coding_system_used = coding.symbol;
if (inserted > 0)
{
p = Vafter_insert_file_functions;
@ -4000,6 +4002,8 @@ to the file, instead of any buffer contents, and END is ignored.")
coding.selective = 1;
}
Vlast_coding_system_used = coding.symbol;
filename = Fexpand_file_name (filename, Qnil);
if (STRINGP (visit))
visit_file = Fexpand_file_name (visit, Qnil);