aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-06-03 22:36:06 +0000
committerRichard M. Stallman2002-06-03 22:36:06 +0000
commit77218681255508a87b6820f460631a5b9f1d7954 (patch)
tree17b96f9127392c56db7befe3cae0c664c86fe9fd /src
parent504322ad237edd663515f2157614e6d265924018 (diff)
downloademacs-77218681255508a87b6820f460631a5b9f1d7954.tar.gz
emacs-77218681255508a87b6820f460631a5b9f1d7954.zip
(choose_write_coding_system):
Pass FILE arg to Vselect_safe_coding_system_function.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 4999e284c84..29bd3ecfff3 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4674,7 +4674,8 @@ choose_write_coding_system (start, end, filename,
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