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: EOL question Date: Sat, 10 May 2003 20:37:51 +0300 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4634-Sat10May2003203750+0300-eliz@elta.co.il> References: <878ytfgfh0.fsf@cecilia.trollope.org> <87znlvsza0.fsf@marc0host.dyndns.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052588504 10905 80.91.224.249 (10 May 2003 17:41:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 10 May 2003 17:41:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 10 19:41:42 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 19EYLu-0002pc-00 for ; Sat, 10 May 2003 19:41:42 +0200 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 19EYMo-0002tU-08 for gnu-help-gnu-emacs@m.gmane.org; Sat, 10 May 2003 13:42:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19EYLx-0002GT-00 for help-gnu-emacs@gnu.org; Sat, 10 May 2003 13:41:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19EYLp-00027W-00 for help-gnu-emacs@gnu.org; Sat, 10 May 2003 13:41:39 -0400 Original-Received: from aragorn.inter.net.il ([192.114.186.23]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EYLn-0001oT-00 for help-gnu-emacs@gnu.org; Sat, 10 May 2003 13:41:35 -0400 Original-Received: from zaretsky (cable-130-147.inter.net.il [213.8.130.147]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AOI44104; Sat, 10 May 2003 20:41:30 +0300 (IDT) 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: <87znlvsza0.fsf@marc0host.dyndns.org> (message from Marco Parrone on Sat, 10 May 2003 13:32:21 GMT) 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:9536 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9536 > Newsgroups: gnu.emacs.help > From: Marco Parrone > Date: Sat, 10 May 2003 13:32:21 GMT > > Michael Powe writes: > > > is there a way for me to have NTemacs always write files in unix > > format? i've read the manual but i don't seem to see anything that > > creates this behavior. when i create files on nt, i don't want to > > have to strip the carriage returns when i move the files onto linux. > > Try > > (modify-coding-system-alist 'file "" 'unix) I don't recommend this solution. Not only does it disable _all_ conversions, not just EOL conversions, for files whose encodings are known in advance, but it will also break whenever coding-systems alist is modified by some package or the user in their ~/.emacs. Don't do that. See my other mail in this thread for the solution recommended by the Emacs manual.