From: Richard M. Stallman Date: Tue, 26 May 1998 20:46:31 +0000 (+0000) Subject: (detect_coding_system): Treat CODING_EOL_INCONSISTENT X-Git-Tag: emacs-20.3~823 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65059037ab8165366021c2a6a6870b7cd928818d;p=emacs.git (detect_coding_system): Treat CODING_EOL_INCONSISTENT like CODING_EOL_UNDECIDED. --- diff --git a/src/coding.c b/src/coding.c index 6f9d7ca14fe..1bdac41c786 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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);