Mercurial > emacs
comparison src/fileio.c @ 45628:6d7e86e98b2c
(choose_write_coding_system):
Pass FILE arg to Vselect_safe_coding_system_function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 03 Jun 2002 22:36:06 +0000 |
parents | 54b933234eb4 |
children | a181c1d41a78 |
comparison
equal
deleted
inserted
replaced
45627:f5eb1df26f64 | 45628:6d7e86e98b2c |
---|---|
4672 } | 4672 } |
4673 | 4673 |
4674 if (!force_raw_text | 4674 if (!force_raw_text |
4675 && !NILP (Ffboundp (Vselect_safe_coding_system_function))) | 4675 && !NILP (Ffboundp (Vselect_safe_coding_system_function))) |
4676 /* Confirm that VAL can surely encode the current region. */ | 4676 /* Confirm that VAL can surely encode the current region. */ |
4677 val = call3 (Vselect_safe_coding_system_function, start, end, val); | 4677 val = call4 (Vselect_safe_coding_system_function, |
4678 start, end, val, filename); | |
4678 | 4679 |
4679 setup_coding_system (Fcheck_coding_system (val), coding); | 4680 setup_coding_system (Fcheck_coding_system (val), coding); |
4680 if (coding->eol_type == CODING_EOL_UNDECIDED | 4681 if (coding->eol_type == CODING_EOL_UNDECIDED |
4681 && !using_default_coding) | 4682 && !using_default_coding) |
4682 { | 4683 { |