From f7ce9c0cb6acc3e88fea89103c9ea9605433c621 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 9 Oct 2003 23:08:14 +0000 Subject: [PATCH] (Finsert_file_contents) [DOS_NT]: Use the macro CODING_ID_EOL_TYPE.. --- src/fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index 7571a1c9602..69893a4192f 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4521,8 +4521,8 @@ actually used. */) /* Use the conversion type to determine buffer-file-type (find-buffer-file-type is now used to help determine the conversion). */ - if ((coding.eol_type == eol_type_undecided - || coding.eol_type == eol_type_lf) + if ((EQ (CODING_ID_EOL_TYPE (coding.id), Qundecided) + || EQ (CODING_ID_EOL_TYPE (coding.id), Qunix)) && ! CODING_REQUIRE_DECODING (&coding)) current_buffer->buffer_file_type = Qt; else -- 2.39.2