all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to see the raw line endings in a file?
Date: Sun, 31 Mar 2019 20:18:52 +0300	[thread overview]
Message-ID: <83r2angdxf.fsf@gnu.org> (raw)
In-Reply-To: <865zrzhtya.fsf@dod.no> (message from Steinar Bang on Sun, 31 Mar 2019 18:47:25 +0200)

> From: Steinar Bang <sb@dod.no>
> Date: Sun, 31 Mar 2019 18:47:25 +0200
> 
> 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.

Emacs never hides CRLF EOLs unless it says "DOS" in the mode line.  If
your file has mixed EOL format, then either you will see "DOS" in the
mode line or some of the lines will have ^M characters at their end.

If you see neither of these, then it isn't Emacs that converts some
lines to DOS CRLF format, it's some other program.  And you didn't
describe in enough detail what you do to try guessing more.



  reply	other threads:[~2019-03-31 17:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-31 16:47 How to see the raw line endings in a file? Steinar Bang
2019-03-31 17:18 ` Eli Zaretskii [this message]
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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83r2angdxf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.