changeset 19925:31b8e0e60e2d

(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.
author Richard M. Stallman <rms@gnu.org>
date Sun, 14 Sep 1997 17:21:28 +0000
parents 908d510e7e8a
children 09d355f9877e
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sun Sep 14 15:57:18 1997 +0000
+++ b/src/fileio.c	Sun Sep 14 17:21:28 1997 +0000
@@ -3164,6 +3164,8 @@
 	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;
     }