From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: decode_eol and inconsistent EOL Date: Sun, 28 Apr 2002 18:40:21 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200204282240.g3SMeLr13023@rum.cs.yale.edu> References: <1438-Thu25Apr2002222156+0300-eliz@is.elta.co.il> <200204261738.g3QHcbl05147@aztec.santafe.edu> <3028-Fri26Apr2002222232+0300-eliz@is.elta.co.il> <200204262039.g3QKdsq31438@rum.cs.yale.edu> <9791-Sat27Apr2002111439+0300-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020033770 17694 127.0.0.1 (28 Apr 2002 22:42:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Apr 2002 22:42:50 +0000 (UTC) Cc: monnier+gnu/emacs@RUM.cs.yale.edu, rms@gnu.org, gildea@stop.mail-abuse.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 171xNZ-0004bH-00 for ; Mon, 29 Apr 2002 00:42:49 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 171xR3-0003Lk-00 for ; Mon, 29 Apr 2002 00:46:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171xN3-00014Q-00; Sun, 28 Apr 2002 18:42:17 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171xLF-0000x4-00; Sun, 28 Apr 2002 18:40:25 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g3SMeLr13023; Sun, 28 Apr 2002 18:40:21 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Eli Zaretskii" Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3359 > > From: "Stefan Monnier" > > Date: Fri, 26 Apr 2002 16:39:54 -0400 > > > > > > Are we sure that Mac users (where a single CR is the EOL character) > > > won't object this? > > > > Mac users don't have LFs at all > > Really? Why not? AFAIK, the LF on a Mac is like a CR on Unix--it's a > control character that can appear in a file. Look at the code: if there's an LF anywhere, the mac decoding fails and reverts to unix style eol. This is a current limitation of Emacs because it cannot distinguish (inside an Emacs buffer) between an "LF character" and an "eol character", so an LF char from a Mac-eol file cannot be decoded to an LF (since it would be encoded back as a CR). We could of course decode them to something completely different (like CR which will currently never be output by the decoding of a Mac-eol file), but then people would find it rather surprising. Stefan