diff options
| author | Richard M. Stallman | 1997-09-14 17:21:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-14 17:21:28 +0000 |
| commit | 0de6b8f4a01dd0b4f4d15992f09bebc04c03fe95 (patch) | |
| tree | 4cb38f3664a8f48f4e892dea53559059cbddda8a /src | |
| parent | 993d17f24c0a4ecbdb26aafa50c6df1b6bf053b3 (diff) | |
| download | emacs-0de6b8f4a01dd0b4f4d15992f09bebc04c03fe95.tar.gz emacs-0de6b8f4a01dd0b4f4d15992f09bebc04c03fe95.zip | |
(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.
Diffstat (limited to 'src')
| -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\ | |||
| 3164 | report_file_error ("Opening input file", Fcons (orig_filename, Qnil)); | 3164 | report_file_error ("Opening input file", Fcons (orig_filename, Qnil)); |
| 3165 | st.st_mtime = -1; | 3165 | st.st_mtime = -1; |
| 3166 | how_much = 0; | 3166 | how_much = 0; |
| 3167 | if (!NILP (Vcoding_system_for_read)) | ||
| 3168 | current_buffer->buffer_file_coding_system = Vcoding_system_for_read; | ||
| 3167 | goto notfound; | 3169 | goto notfound; |
| 3168 | } | 3170 | } |
| 3169 | 3171 | ||