[Top][All Lists]

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

Re: [h-e-w] Force Windows line endings

From: Eli Zaretskii
Subject: Re: [h-e-w] Force Windows line endings
Date: Sat, 18 Feb 2006 12:19:51 +0200

> Date: Fri, 17 Feb 2006 17:16:37 -0700
> From: "Ryan Bowman" <address@hidden>
> I run Emacs ( on Windows XP.  When I open a file emacs
> detects if the file contains unix or windows line endings and uses the
> appropriate.

This is the default behavior...

> When I create a new file it uses Unix line endings.

...but this is not!  By default, Emacs on Windows should use DOS line
endings when it creates new files.  Does this change in any way if you
invoke Emacs as "emacs -Q"?  If so, perhaps some of your
customizations in .emacs cause this effect.

Btw, what build of Emacs do you use (what does "M-x emacs-version RET"

> I would like emacs to always use dos line endings

Even if the original file had Unix line endings?  If so (I don't
recommend it), you could set the value of save-buffer-coding-system to

> (because everyone else I work with uses Eclipse on Windows).

You mean, Eclipse on Windows doesn't support Unix line endings?  That
would be a bug in Eclipse, I think.

reply via email to

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