aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1998-05-26 20:46:31 +0000
committerRichard M. Stallman <[email protected]>1998-05-26 20:46:31 +0000
commit65059037ab8165366021c2a6a6870b7cd928818d (patch)
tree1e3f866d3d7c6426028863db0e4a5b2e1856a02f
parent74490e55dafccd6ebb1717c7144c5c36d6e0d838 (diff)
(detect_coding_system): Treat CODING_EOL_INCONSISTENT
like CODING_EOL_UNDECIDED.
-rw-r--r--src/coding.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 6f9d7ca14f..1bdac41c78 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);