From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: Problem with UNIX/DOS issue on Emacs for Windows Date: Thu, 28 Jul 2005 22:38:08 +0100 Organization: freedom2surf Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122586994 20016 80.91.229.2 (28 Jul 2005 21:43:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2005 21:43:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 23:43:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyG9P-0005hs-88 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2005 23:42:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyGBs-0003RS-2s for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2005 17:45:20 -0400 Original-Lines: 25 Original-NNTP-Posting-Host: i-83-67-23-108.freedom2surf.net Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news-out.nntp.be!spool6-east.superfeed.net!propagator-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-X-Trace: news.freedom2surf.net 1122586752 5012 83.67.23.108 (28 Jul 2005 21:39:12 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Thu, 28 Jul 2005 21:39:12 +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.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:rQPDQQxLA/iJJnFvMc+//2Cj8hM= Original-Xref: shelby.stanford.edu gnu.emacs.help:132741 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28264 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28264 exits funnel writes: > So, what's going on? On what does emacs base the > determination that the one file is a unix file while > hte other is not? The line ends are inconsistent. Or there is a ^M in the middle of a line somewhere. If this is deliberate (part of a string maybe), you should probably use "\x0d" instead. > How can I fix it? There may be better ways, but usually I use the following method to repair such files (do not type any spaces, they are just seperating keystrokes for clarity): Keystrokes Explanation M-< Ensure you are starting at the beginning of the file. M-% C-q C-m RET RET Replace all ^M characters with nothing. C-x RET f d o s RET Set the file to DOS mode. C-x C-s Save the repaired file. You can omit the third step if you don't mind the file having Unix line ends.