[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to see the raw line endings in a file?

From: Steinar Bang
Subject: Re: How to see the raw line endings in a file?
Date: Sun, 31 Mar 2019 20:57:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt)

>>>>> Eli Zaretskii <address@hidden>:

> Then why are you saying that Emacs hides CR characters from you?  It
> does show them as those ^Ms.

I'm not saying that emacs hides CR characters from me.  I'm asking the
question: is it a possibility that emacs hides characters from me?

(And I see from your reply that the answer to that question is "no")

The reason I'm asking this question is that I am encountering a problem
noone else seems to be encountering, and I was wondering if I could
trust what emacs is telling me (ie. that the files originally were lf
eol only).

(It could be that my google searches are insufficient to find others
with the same problem, but by my experience is that weird problems that
noone else has, is usually caused by a silly problem with my own code or

> In general, when a file has mixed EOLs, what will show in the mode
> line and what in the buffer is determined by sheer luck, because Emacs
> examines only a small portion of the file to determine the EOL format,
> and depending on where you have CRLF and where just LF you can end up
> with either "DOS" or ^M characters.

Hm... so, if the is not detected as "DOS" and I mainly look at the start
of the file, then it looks like a unix file, but could have an CR
further down...?

Ok, thanks for the info.  I will investigate further and report back.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]