From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get rid of annoying ^M lineendings
Date: Wed, 23 Apr 2008 07:59:19 +0300 [thread overview]
Message-ID: <ud4oh9nfc.fsf@gnu.org> (raw)
In-Reply-To: <227a76ea-99a0-44cd-bb5f-e6c7b328e347@e67g2000hsa.googlegroups.com>
> From: olgo <Ola.Gook@gmail.com>
> Date: Tue, 22 Apr 2008 06:50:49 -0700 (PDT)
>
> I keep reading solutions to this problem by means of substituting the
> line endings with a global replace but this is not what I need.
> I need for the files to be kept as they are, with all kinds of line
> endings, but I don't want to see it in the editor.
>
> Thus, my question is:
> Is there a way to tell emacs not to show the ^M character altogether?
This should happen automatically, unless you have a file with
inconsistent lineendings: some with ^M, others without. Typing "C-x
RET c dos RET" immediately before "C-x C-f" that you use to visit the
file will cause Emacs to not display any ^M characters, even if the
lineendings are inconsistent, but if you edit that file and save it,
Emacs will add a ^M character to each line when it saves the file,
which might not be what you want in this case.
IOW, Emacs cannot remember whether there should be a ^M character on a
line by line basis, only for the whole file.
prev parent reply other threads:[~2008-04-23 4:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 13:50 How to get rid of annoying ^M lineendings olgo
2008-04-22 14:13 ` Joost Kremers
2008-04-23 16:39 ` Stefan Reichör
2008-04-23 18:19 ` Drew Adams
2014-07-17 20:51 ` scott.althoff
2014-07-17 22:31 ` Emanuel Berg
2014-07-18 5:53 ` Michael Heerdegen
2014-07-18 6:52 ` Florian Lindner
2014-07-18 5:44 ` Michael Heerdegen
2008-04-23 4:59 ` Eli Zaretskii [this message]
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=ud4oh9nfc.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.