Commit 04e6f79c authored by Geoff Voelker's avatar Geoff Voelker
Browse files

(Finsert_file_contents) [DOS_NT]: Set buffer_file_type

according to eol conversion used on file.
parent c781a8e8
......@@ -3083,16 +3083,6 @@ This does code conversion according to the value of\n\
setup_coding_system (Fcheck_coding_system (val), &coding);
}
#ifdef DOS_NT
/* Use the conversion type to determine buffer-file-type
(find-buffer-file-type is now used to help determine the
conversion). */
if (coding.type == coding_type_no_conversion)
current_buffer->buffer_file_type = Qt;
else
current_buffer->buffer_file_type = Qnil;
#endif
fd = -1;
#ifndef APOLLO
......@@ -3618,6 +3608,17 @@ This does code conversion according to the value of\n\
inserted += this;
}
#ifdef DOS_NT
/* Use the conversion type to determine buffer-file-type
(find-buffer-file-type is now used to help determine the
conversion). */
if (CODING_REQUIRE_EOL_CONVERSION (&coding))
current_buffer->buffer_file_type = Qnil;
else
current_buffer->buffer_file_type = Qt;
#endif
/* We don't have to consider file type of MSDOS because all files
are read as binary and end-of-line format has already been
decoded appropriately. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment