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

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

Re: newline vs CRLF


From: Eli Zaretskii
Subject: Re: newline vs CRLF
Date: Tue, 18 Mar 2003 23:07:22 +0200

> Date: Tue, 18 Mar 2003 09:56:46 -0800
> From: Steve Chard <steve.chard@moblcode.com>
> 
> I work on a Linux box using XEMACS and a Win2K using EMACS 21.2. 
> Whenever the Linux box opens a file (for example, a Perl script), it
> puts a CRLF pair (carriage return/line feed hex 0D0A) in the place of
> the normal single newline (hex 0A).  This is truly annoying.  How do I
> stop this behavior.

If the file you vuisit existed before and had Unix-style single
newline characters at the end of each line, Emacs running on W2K
ought to preserve the end-of-line format.  If it doesn't, something
must be wrong with your customizations; try "emacs -q" and see if
that makes the problem go away.

If the problem is that you want new files you create on W2K to have
Unix-style end-of-line format, see the node "Text and Binary" in the
Emacs manual which describes the untranslated filesystem facility that
will help you.  For a single file, "C-x RET f unix RET C-x C-s" will
save the file in Unix EOL format.

HTH




reply via email to

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