From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B.T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Problem with UNIX/DOS issue on Emacs for Windows Date: Fri, 29 Jul 2005 05:06:01 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <11ek0873hb12jd6@corp.supernews.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122632032 15564 80.91.229.2 (29 Jul 2005 10:13:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 10:13:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 12:13:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyRs1-00053n-4U for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2005 12:13:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyRuV-0007z6-FY for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2005 06:16:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!sn-xit-03!sn-xit-08!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 34 Original-Xref: shelby.stanford.edu gnu.emacs.help:132752 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:28276 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28276 wrote in message news:ur7di1uin.fsf@jasonrumney.net... > 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. ;; doesn't OP need a ! (bang) after the second RET? > 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.