Mercurial > emacs
changeset 59207:3912575fcded
(Finsert_file_contents): Don't use
current_buffer->buffer_file_coding_system even if REPLACE is
non-nil. Call Qafter_insert_file_set_coding with the second arg
VISIT.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 30 Dec 2004 12:28:41 +0000 |
parents | 77ba45776c58 |
children | 34a8622540ad |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c Thu Dec 30 12:26:31 2004 +0000 +++ b/src/fileio.c Thu Dec 30 12:28:41 2004 +0000 @@ -3861,10 +3861,6 @@ if (!NILP (Vcoding_system_for_read)) val = Vcoding_system_for_read; - else if (! NILP (replace)) - /* In REPLACE mode, we can use the same coding system - that was used to visit the file. */ - val = current_buffer->buffer_file_coding_system; else { /* Don't try looking inside a file for a coding system @@ -4643,7 +4639,8 @@ if (! NILP (Ffboundp (Qafter_insert_file_set_coding))) { - insval = call1 (Qafter_insert_file_set_coding, make_number (inserted)); + insval = call2 (Qafter_insert_file_set_coding, make_number (inserted), + visit); if (! NILP (insval)) { CHECK_NUMBER (insval);