From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: saveplace: don't ask for coding system Date: Tue, 04 Dec 2007 17:24:52 -0500 Message-ID: References: <198E2B70-D060-41D8-8BC2-A9614C2729CC@inf.ed.ac.uk> <06675819-C4A8-4D78-AD59-0A2AF296AC7E@inf.ed.ac.uk> <87ve7gn5zc.fsf@red-bean.com> <0CD94276-1D9F-42BB-A6F7-A90ED9E06817@inf.ed.ac.uk> <87bq98n0ka.fsf@red-bean.com> <87fxykjb6y.fsf@red-bean.com> <87hcizihwh.fsf@red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196807152 10945 80.91.229.12 (4 Dec 2007 22:25:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 22:25:52 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 23:25:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IzgD9-0002ss-Ko for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 23:25:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzgCs-0002q2-Tf for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 17:25:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzgCQ-0002Au-AO for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:25:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzgCN-00024e-Hx for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:25:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzgCN-00024D-CP for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:25:03 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzgCI-0001Wa-JT; Tue, 04 Dec 2007 17:24:58 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id CE9E52CF79B; Tue, 4 Dec 2007 17:24:57 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id ACAF63FE0; Tue, 4 Dec 2007 17:24:52 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 997EB6CAA5; Tue, 4 Dec 2007 17:24:52 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Tue, 04 Dec 2007 23:32:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84679 Archived-At: > I don't think it's better, because a lone ^M can fool Emacs even if we > use -unix. What would help, I think, is have an explicit EOL > conversion stated in the coding: cookie. Then the fragile guesswork > will be bypassed. You're right that the most important part is to specify the EOL in the coding cookie. But I also think that it should always use `unix' EOL when writing the file, because that's the only coding-system that's safe: both the `dos' and the `mac' EOLs can result in data loss when the text being saved includes ^M and ^J characters. It's minor, but if we're going to insist on emacs-mule in place of utf-8, then we should insist on `unix' in place of `dos' or `mac' style EOL. Stefan