unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jasonr (Jason Rumney) @  f2s.com
Subject: Re: text files use dos coding by default
Date: Mon, 02 Aug 2004 19:36:52 +0100	[thread overview]
Message-ID: <un01dv12z.fsf@jasonrumney.net> (raw)
In-Reply-To: S92dnXGbhI5M1JPcRVn-iA@wideopenwest.com

"David Ellis" <ddellis@mail.com> writes:

> I am using emacs on Windows XP. It seems that text files use unix coding by
> default even though the files have carriage return-linefeeds at the ends of
> the lines. Is there a way that I can set this up to use dos by default?

The default on Windows is to create files with DOS line ends, and to
autodetect line ends when reading existing files. So either you have
something in your init files to make Unix the default, or the files
you are opening have inconsistent line-ends, so Emacs defaults to Unix
to avoid corrupting binary files.

  reply	other threads:[~2004-08-02 18:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-02 14:03 text files use dos coding by default David Ellis
2004-08-02 18:36 ` Jason Rumney [this message]
2004-08-02 18:57   ` David Ellis
2004-08-02 20:05     ` Eli Zaretskii
     [not found]     ` <mailman.2497.1091477526.1960.help-gnu-emacs@gnu.org>
2004-08-03  1:06       ` David Ellis
  -- strict thread matches above, loose matches on Subject: below --
2004-08-02 14:03 David Ellis

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=un01dv12z.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.
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).