before calling Vafter_insert_file_functions.
(Fwrite_region): Set Vlast_coding_system_used after deciding a
coding system to be used for encoding.
&& (NILP (visit) || !NILP (replace)))
signal_after_change (PT, 0, inserted);
+ Vlast_coding_system_used = coding.symbol;
+
if (inserted > 0)
{
p = Vafter_insert_file_functions;
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);