From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get rid of ^M at end of line
Date: Sat, 10 Oct 2009 20:13:52 +0200 [thread overview]
Message-ID: <83hbu7jevz.fsf@gnu.org> (raw)
In-Reply-To: <fdcd75820910101014k6338bab0xd9c97c44710d6424@mail.gmail.com>
> Date: Sat, 10 Oct 2009 19:14:52 +0200
> From: bar tomas <bartomas@gmail.com>
>
> I'm working on windows xp, and I get ^M characters at the end of each
> line- In fact, every time I open the document I get an additional ^M
> at the end of each line. I've tried to use Replace '^M', but it
> doesn't work (replaces nothing)
> I've noticed that Ctrl end-of-line is set to Unix when I start Emacs,
Does this (the "Unix" EOL mode-line indicator and the ^M characters)
happen to you in "emacs -Q"? (They shouldn't.) If in "emacs -Q" the
problem goes away, something in your .emacs init file causes this.
> What should I write in my emacs init file to set Ctrl end-of-line
> permanently to DOS (if this is the problem)?
It's rather what you should NOT write in the init file, I think.
Emacs by default preserves the EOL format of existing files, so it
should set EOL to -dos when it visits a file automatically.
next prev parent reply other threads:[~2009-10-10 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-10 17:14 How to get rid of ^M at end of line bar tomas
2009-10-10 17:49 ` Peter Dyballa
2009-10-10 18:13 ` Eli Zaretskii [this message]
2009-10-11 14:03 ` bar tomas
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=83hbu7jevz.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.