From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: mac/dos/unix newline conversion without specify from Date: Wed, 05 Dec 2007 18:05:34 +0100 Organization: Organization?!? Message-ID: <85hcixt6ld.fsf@lola.goethe.zz> References: <9fce01a5-ed79-4981-8b02-29e335b694cd@d21g2000prf.googlegroups.com> <168cd816-9fd4-49e8-a2a6-fe2ff6cf69a0@s36g2000prg.googlegroups.com> <85zlwptc5l.fsf@lola.goethe.zz> <17f871e1-56be-4269-8e44-9fb2652b02f6@a35g2000prf.googlegroups.com> <85prxlt8g0.fsf@lola.goethe.zz> <1eb0de3a-9c0f-4488-b05a-1ef36df87871@d4g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196876484 21217 80.91.229.12 (5 Dec 2007 17:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 17:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 05 18:41:34 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IzyFY-0008Fj-VQ for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 18:41:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzyFI-0006iK-7X for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 12:41:16 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:QLLgEV7yYnRzfBxWvy29qY6drPQ= Original-Lines: 22 Original-NNTP-Posting-Date: 05 Dec 2007 18:05:14 CET Original-NNTP-Posting-Host: e5effb82.newsspool1.arcor-online.net Original-X-Trace: DXC=eXBN4:SSiCV@@RW1FjIB5Sic==]BZ:af^4Fo<]lROoRQ4nDHegD_]RULZCL=n=59ZQCV`H8_`hhQT^9QSCVg3dOVOIC5DBZVJ9[hhg2e4[0VER:C9@XVQmmCS Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:154428 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:49857 Archived-At: Xah Lee writes: > Xah Lee wrote: > < Then start emacs with -q, open the file. It doesn't interprete the > file as a mac os classic file but instead display newline char as ^M.>> > > David Kastrup wrote: > << > It does switch to Mac endings here in this case. Just tried it. >>> > > mm... interesting. Here's a sample file for what's worth: > http://xahlee.org/emacs/x-unixmacdos-eol/x1mac That's because html-mode sets require-final-newline to t. If you reset it to nil and then save, you get the file saved without a final (non-Macish-looking) LF character, and it gets recognized correctly when loading it again. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum