Mercurial > emacs
comparison src/coding.c @ 22254:1deb7d79af00
(detect_coding_system): Treat CODING_EOL_INCONSISTENT
like CODING_EOL_UNDECIDED.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 26 May 1998 20:46:31 +0000 |
parents | 557fac086b1b |
children | 4786b00d2973 |
comparison
equal
deleted
inserted
replaced
22253:ed6b191416cf | 22254:1deb7d79af00 |
---|---|
4544 } | 4544 } |
4545 } | 4545 } |
4546 if (!highest) | 4546 if (!highest) |
4547 val = Fnreverse (val); | 4547 val = Fnreverse (val); |
4548 | 4548 |
4549 /* Then, substitute the elements by subsidiary coding systems. */ | 4549 /* Then, replace the elements with subsidiary coding systems. */ |
4550 for (tmp = val; !NILP (tmp); tmp = XCONS (tmp)->cdr) | 4550 for (tmp = val; !NILP (tmp); tmp = XCONS (tmp)->cdr) |
4551 { | 4551 { |
4552 if (eol_type != CODING_EOL_UNDECIDED) | 4552 if (eol_type != CODING_EOL_UNDECIDED |
4553 && eol_type != CODING_EOL_INCONSISTENT) | |
4553 { | 4554 { |
4554 Lisp_Object eol; | 4555 Lisp_Object eol; |
4555 eol = Fget (XCONS (tmp)->car, Qeol_type); | 4556 eol = Fget (XCONS (tmp)->car, Qeol_type); |
4556 if (VECTORP (eol)) | 4557 if (VECTORP (eol)) |
4557 XCONS (tmp)->car = XVECTOR (eol)->contents[eol_type]; | 4558 XCONS (tmp)->car = XVECTOR (eol)->contents[eol_type]; |