diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-05-26 20:46:31 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-05-26 20:46:31 +0000 |
commit | 65059037ab8165366021c2a6a6870b7cd928818d (patch) | |
tree | 1e3f866d3d7c6426028863db0e4a5b2e1856a02f /src/coding.c | |
parent | 74490e55dafccd6ebb1717c7144c5c36d6e0d838 (diff) | |
download | emacs-65059037ab8165366021c2a6a6870b7cd928818d.tar.gz |
(detect_coding_system): Treat CODING_EOL_INCONSISTENT
like CODING_EOL_UNDECIDED.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |