Skip to content

Commit

Permalink
(Finsert_file_contents): If a coding system is
Browse files Browse the repository at this point in the history
specified explicitly on visiting a new file, set
buffer-file-coding system of the new buffer to the specified one.
  • Loading branch information
Richard M. Stallman committed Sep 14, 1997
1 parent bd51fc2 commit fc1f2c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fileio.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit fc1f2c6

Please sign in to comment.