aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);