diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-09-14 17:21:28 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-09-14 17:21:28 +0000 |
commit | fc1f2c6478ff6796c050b5d22bdbca59893b937f (patch) | |
tree | afcda5deb79a092908273c4a80f6505452f6277d | |
parent | bd51fc2e6e0ebdd2bd37ac7133b3c25a5d484578 (diff) | |
download | emacs-fc1f2c6478ff6796c050b5d22bdbca59893b937f.tar.gz |
(Finsert_file_contents): If a coding system is
specified explicitly on visiting a new file, set
buffer-file-coding system of the new buffer to the specified one.
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index e23b74a1720..4636193e577 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3164,6 +3164,8 @@ This does code conversion according to the value of\n\ report_file_error ("Opening input file", Fcons (orig_filename, Qnil)); st.st_mtime = -1; how_much = 0; + if (!NILP (Vcoding_system_for_read)) + current_buffer->buffer_file_coding_system = Vcoding_system_for_read; goto notfound; } |