help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text files use dos coding by default


From: David Ellis
Subject: Re: text files use dos coding by default
Date: Mon, 2 Aug 2004 13:57:41 -0500

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
un01dv12z.fsf@jasonrumney.net">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 via email to

[Prev in Thread] Current Thread [Next in Thread]