From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: newline vs CRLF Date: Tue, 18 Mar 2003 23:07:22 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6480-Tue18Mar2003230721+0200-eliz@elta.co.il> References: <3E775DDE.32473E13@moblcode.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048022527 16414 80.91.224.249 (18 Mar 2003 21:22:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2003 21:22:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 22:22:01 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vOX3-0004Fl-00 for ; Tue, 18 Mar 2003 22:22:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vOTI-0007NT-02 for gnu-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2003 16:18:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vOQ8-0004zm-00 for help-gnu-emacs@gnu.org; Tue, 18 Mar 2003 16:14:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vOOd-000434-00 for help-gnu-emacs@gnu.org; Tue, 18 Mar 2003 16:13:20 -0500 Original-Received: from balder.inter.net.il ([192.114.186.15]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vOOG-0003bd-00 for help-gnu-emacs@gnu.org; Tue, 18 Mar 2003 16:12:56 -0500 Original-Received: from zaretsky ([80.230.235.192]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id CFI98275; Tue, 18 Mar 2003 23:12:54 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <3E775DDE.32473E13@moblcode.com> (message from Steve Chard on Tue, 18 Mar 2003 09:56:46 -0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7691 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7691 > Date: Tue, 18 Mar 2003 09:56:46 -0800 > From: Steve Chard > > 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