From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: exits funnel Newsgroups: gmane.emacs.help Subject: Re: Problem with UNIX/DOS issue on Emacs for Windows Date: Tue, 2 Aug 2005 04:08:40 -0700 (PDT) Message-ID: <20050802110840.68265.qmail@web52904.mail.yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1122992074 26461 80.91.229.2 (2 Aug 2005 14:14:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2005 14:14:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 13:38:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dzv5j-0002fI-5a for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2005 13:37:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dzv8P-0001A5-HT for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2005 07:40:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dzv6S-0008Jm-IG for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 07:38:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dzv6Q-0008Fu-54 for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 07:38:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dzv39-0006R9-9l for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 07:35:11 -0400 Original-Received: from [206.190.49.14] (helo=web52904.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1Dzupp-0004Kk-Fy for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 07:21:25 -0400 Original-Received: (qmail 68267 invoked by uid 60001); 2 Aug 2005 11:08:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gU7cgk3KLfI6boMNyY/4uXmT0jHFRTTnasUyKMU4xy9NrNn45WKlnFM7BkmujeiPSuaSuXPVED846Ie7vXNOdFoIBNcF4Z9hqlluY6gJ3km6MUl4oFe73E2ErLp7n9HrdnxR6bDSReOaFXuGpUNlXrJCQ0ZpOiyS9Df1dH+/k1s= ; Original-Received: from [67.86.87.9] by web52904.mail.yahoo.com via HTTP; Tue, 02 Aug 2005 04:08:40 PDT Original-To: jasonr@f2s.com, help-gnu-emacs@gnu.org In-Reply-To: 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:28341 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28341 Thanks Jason. I never was able to figure out why Emacs thought the file was a UNIX file, but in any case the steps you provided got the file straightened out. Thanks agains. -exits --- jasonr@f2s.com wrote: > 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. > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs