all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "David Ellis" <ddellis@mail.com>
Subject: Re: text files use dos coding by default
Date: Mon, 2 Aug 2004 13:57:41 -0500	[thread overview]
Message-ID: <bemdnXUflooyE5PcRVn-vQ@wideopenwest.com> (raw)
In-Reply-To: un01dv12z.fsf@jasonrumney.net

That's what I thought. I tried this test. I renamed my .emacs file so that I
have no startup file.

If I send a dir listing to a file (dir > test.txt)and open it with emacs,
emacs thinks it is unix.

If I just open emacs and start typing in the scratch buffer, it thinks that
it is dos. But if I save it, exit emacs, and open the file, it thinks it is
unix.

Dave
<jasonr (Jason Rumney) @ f2s.com> wrote in message
news:un01dv12z.fsf@jasonrumney.net...
> "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:57 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
2004-08-02 18:57   ` David Ellis [this message]
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

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

  git send-email \
    --in-reply-to=bemdnXUflooyE5PcRVn-vQ@wideopenwest.com \
    --to=ddellis@mail.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.