]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_coding_system): Treat CODING_EOL_INCONSISTENT
authorRichard M. Stallman <rms@gnu.org>
Tue, 26 May 1998 20:46:31 +0000 (20:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 26 May 1998 20:46:31 +0000 (20:46 +0000)
like CODING_EOL_UNDECIDED.

src/coding.c

index 6f9d7ca14fe5c0316cfd0f189f9ba569b708ffc0..1bdac41c7865e7d3c91d949c013312a8ff7c711c 100644 (file)
@@ -4546,10 +4546,11 @@ detect_coding_system (src, src_bytes, highest)
   if (!highest)
     val = Fnreverse (val);
 
-  /* Then, substitute the elements by subsidiary coding systems.  */
+  /* Then, replace the elements with subsidiary coding systems.  */
   for (tmp = val; !NILP (tmp); tmp = XCONS (tmp)->cdr)
     {
-      if (eol_type != CODING_EOL_UNDECIDED)
+      if (eol_type != CODING_EOL_UNDECIDED
+         && eol_type != CODING_EOL_INCONSISTENT)
        {
          Lisp_Object eol;
          eol = Fget (XCONS (tmp)->car, Qeol_type);