From: jasonr (Jason Rumney) @ f2s.com
Subject: Re: Problem with UNIX/DOS issue on Emacs for Windows
Date: Thu, 28 Jul 2005 22:38:08 +0100 [thread overview]
Message-ID: <ur7di1uin.fsf@jasonrumney.net> (raw)
In-Reply-To: mailman.2002.1122584487.20277.help-gnu-emacs@gnu.org
exits funnel <exitsfunnel@yahoo.com> writes:
> So, what's going on? On what does emacs base the
> determination that the one file is a unix file while
> hte other is not?
The line ends are inconsistent. Or there is a ^M in the middle
of a line somewhere. If this is deliberate (part of a string maybe),
you should probably use "\x0d" instead.
> How can I fix it?
There may be better ways, but usually I use the following method to
repair such files (do not type any spaces, they are just seperating
keystrokes for clarity):
Keystrokes Explanation
M-< Ensure you are starting at the beginning of the file.
M-% C-q C-m RET RET Replace all ^M characters with nothing.
C-x RET f d o s RET Set the file to DOS mode.
C-x C-s Save the repaired file.
You can omit the third step if you don't mind the file having Unix line
ends.
next parent reply other threads:[~2005-07-28 21:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2002.1122584487.20277.help-gnu-emacs@gnu.org>
2005-07-28 21:38 ` Jason Rumney [this message]
2005-07-29 10:06 ` Problem with UNIX/DOS issue on Emacs for Windows B.T. Raven
2005-07-29 19:09 ` Jason Rumney
2005-07-29 14:19 ` rob wahoo
2005-08-02 11:08 ` exits funnel
2005-07-28 20:41 exits funnel
2005-07-28 21:22 ` Peter Dyballa
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=ur7di1uin.fsf@jasonrumney.net \
--to=jasonr@f2s.com \
/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.