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 17:25:35 +0100 Organization: Organization?!? Message-ID: <85prxlt8g0.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196872985 7978 80.91.229.12 (5 Dec 2007 16:43:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 16:43:05 +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 17:43:15 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 1IzxL2-0005rn-Vs for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 17:43:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzxKm-0005SV-89 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 11:42:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newshunter!cosy.sbg.ac.at!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool3.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:jhFSyvVtBYcmWqMmpZ9860a8bZ4= Original-Lines: 30 Original-NNTP-Posting-Date: 05 Dec 2007 17:25:12 CET Original-NNTP-Posting-Host: 52182642.newsspool2.arcor-online.net Original-X-Trace: DXC=f8c_9dKioG:RLigj]; iP=8A9EHlD; 3Yc24Fo<]lROoR14nDHegD_]R5C>fN4kI0DM3CV`H8_`hhQ4^9QSCVg3dO6OIC5DBZVJ9; hhg2e4[0VE2<2Z\g[YHaa4 Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:154424 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:49853 Archived-At: Xah Lee writes: > Xah Lee wrote: > < file with classic Mac OS line endings properly? (i.e. EOL shows up as > ^M)>> > > David Kastrup: > < characters. In that case, Emacs has to choose "-unix" line encoding > or it would change the file when writing it back to disk.>> > > jackpot :) Huh? Inconsistent with what you write now: > Open a unix file, do replace-string from LF to CR. Save the file. 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. It does switch to Mac endings here in this case. Just tried it. > given the current situation, how to instruct emacs (as a user) to open > a file with CR as EOL? You can always do something like C-x RET c latin-1-mac RET C-x C-f file RET but again: this should not be necessary at all. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum