From: "Stefan Monnier" <monnier+gnu/emacs/bug@RUM.cs.yale.edu>
Cc: monnier+gnu/emacs/bug@rum.cs.yale.edu, gnu-emacs-bug@gnu.org
Subject: Re: decode_eol and inconsistent EOL
Date: Mon, 29 Apr 2002 14:11:59 -0400 [thread overview]
Message-ID: <200204291811.g3TIBxA21193@rum.cs.yale.edu> (raw)
In-Reply-To: 3405-Mon29Apr2002210031+0300-eliz@is.elta.co.il
> > 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
next prev parent reply other threads:[~2002-04-29 18:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E170n3M-0000tW-00@fencepost.gnu.org>
2002-04-25 19:21 ` decode_eol and inconsistent EOL Eli Zaretskii
2002-04-26 13:00 ` Stefan Monnier
2002-04-26 14:37 ` Stefan Monnier
2002-04-29 4:46 ` Eli Zaretskii
2002-04-29 12:59 ` Stefan Monnier
2002-04-29 18:00 ` Eli Zaretskii
2002-04-29 18:11 ` Stefan Monnier [this message]
2002-04-29 19:08 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200204291811.g3TIBxA21193@rum.cs.yale.edu \
--to=monnier+gnu/emacs/bug@rum.cs.yale.edu \
--cc=gnu-emacs-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).