[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: decode_eol and inconsistent EOL
From: |
Stefan Monnier |
Subject: |
Re: decode_eol and inconsistent EOL |
Date: |
Mon, 29 Apr 2002 14:11:59 -0400 |
> > From: "Stefan Monnier" <monnier+gnu/emacs/bug@rum.cs.yale.edu>
> > Date: Mon, 29 Apr 2002 08:59:44 -0400
> >
> > I believe we've lost track of the problem.
> > Do you agree with the patch below ?
>
> I'm not sure I do.
>
> > It is safe and does not change any heuristic. I don't think it's
> > "open to interpretation" because it only changes the behavior when
> > there are CRLFs in the file (otherwise the auto-detection would not
> > have chosen dos-style eol)
>
> Let me remind you that auto-detection only examines 3 lines before it
> decides.
So what ?
It still means that dos is only used if the first three lines are terminated
by CRLF. Why is it better to use unix-eol rather than dos-eol when
the file has:
- at least 3 CRLF.
- no LF without a preceding CR.
- some lone CRs after the first three lines.
Stefan