unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to see the raw line endings in a file?
@ 2019-03-31 16:47 Steinar Bang
  2019-03-31 17:18 ` Eli Zaretskii
  2019-03-31 19:20 ` Drew Adams
  0 siblings, 2 replies; 10+ messages in thread
From: Steinar Bang @ 2019-03-31 16:47 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a way in emacs where I can be sure that I see that the files
have line endings of a particular form? 

Ie. DOS style cr lf or unix-ish style with just lf?

I'm normally looking for emacs telling me with a "DOS" in the status
line, that a file actually has cr lf line endings.

But now I have some files with no "DOS" in the status line where weird
stuff is happening:
 1. Everytime I do something with the maven-release-plugin on this
    project, line endings are messed up (most of the lines, but not all,
    get cr lf)
     https://github.com/steinarb/authservice
 2. When I have googled I haven't found any relevant matches.  The only
    matches have been when trying to run releases on Windows, where one
    of the suggestions have been "do the release in a GNU/linux VM"
 3. However, I do the releases on debian GNU/linux

My conclusion from that is that there is something weird with the line
endings on my project's pom.xml files.  However, if that is the case,
then emacs is hiding the issues from me.

So I'm looking for a way to track down any line ending issues in a
file.

Any ideas?

Thanks!


- Steinar



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-03-31 20:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-31 16:47 How to see the raw line endings in a file? Steinar Bang
2019-03-31 17:18 ` Eli Zaretskii
2019-03-31 17:33   ` Steinar Bang
2019-03-31 17:44     ` Eli Zaretskii
2019-03-31 18:57       ` Steinar Bang
2019-03-31 19:09         ` Steinar Bang
2019-03-31 20:17           ` Eli Zaretskii
2019-03-31 19:10         ` Eli Zaretskii
2019-03-31 20:08     ` Stefan Monnier
2019-03-31 19:20 ` Drew Adams

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).