From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: text files use dos coding by default Date: Mon, 02 Aug 2004 19:36:52 +0100 Organization: freedom2surf Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091472125 16113 80.91.224.253 (2 Aug 2004 18:42:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2004 18:42:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 20:42:00 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Brhl1-0007bP-00 for ; Mon, 02 Aug 2004 20:41:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BrhoQ-0000bU-Fp for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Aug 2004 14:45:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.netkonect.net!news-peer0-test!news-peer1!btnet-feed3!btnet!peer.news.zetnet.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: i-195-137-77-250.freedom2surf.net Original-X-Trace: news.freedom2surf.net 1091471813 17209 195.137.77.250 (2 Aug 2004 18:36:53 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Mon, 2 Aug 2004 18:36:53 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:keJ1iVtLYctUOEmR2aMtCXN0bbY= Original-Xref: shelby.stanford.edu gnu.emacs.help:124612 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19945 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19945 "David Ellis" 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.