diff src/fileio.c @ 89577:804bc2c39305

(Finsert_file_contents) [DOS_NT]: Use the macro CODING_ID_EOL_TYPE..
author Kenichi Handa <handa@m17n.org>
date Thu, 09 Oct 2003 23:08:14 +0000
parents 1bd1640fc949
children f15c12edaf6d
line wrap: on
line diff
--- a/src/fileio.c	Mon Oct 06 22:30:44 2003 +0000
+++ b/src/fileio.c	Thu Oct 09 23:08:14 2003 +0000
@@ -4521,8 +4521,8 @@
   /* 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