# HG changeset patch # User Richard M. Stallman # Date 1023143766 0 # Node ID 6d7e86e98b2ca0778be4c3559088e02d24e28b57 # Parent f5eb1df26f64df1997eaeaaad1e444a857b770c4 (choose_write_coding_system): Pass FILE arg to Vselect_safe_coding_system_function. diff -r f5eb1df26f64 -r 6d7e86e98b2c src/fileio.c --- a/src/fileio.c Mon Jun 03 18:03:26 2002 +0000 +++ b/src/fileio.c Mon Jun 03 22:36:06 2002 +0000 @@ -4674,7 +4674,8 @@ if (!force_raw_text && !NILP (Ffboundp (Vselect_safe_coding_system_function))) /* Confirm that VAL can surely encode the current region. */ - val = call3 (Vselect_safe_coding_system_function, start, end, val); + val = call4 (Vselect_safe_coding_system_function, + start, end, val, filename); setup_coding_system (Fcheck_coding_system (val), coding); if (coding->eol_type == CODING_EOL_UNDECIDED