From: Kenichi Handa Date: Thu, 9 Oct 2003 23:08:14 +0000 (+0000) Subject: (Finsert_file_contents) [DOS_NT]: Use the macro CODING_ID_EOL_TYPE.. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1771 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7ce9c0cb6acc3e88fea89103c9ea9605433c621;p=emacs.git (Finsert_file_contents) [DOS_NT]: Use the macro CODING_ID_EOL_TYPE.. --- 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