From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: saveplace: don't ask for coding system Date: Wed, 05 Dec 2007 06:52:26 +0200 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1196830373 4113 80.91.229.12 (5 Dec 2007 04:52:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 04:52:53 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 05:53:02 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 1IzmFo-0006WS-4G for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2007 05:53:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzmFX-0002Es-H2 for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 23:52:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzmFS-00029P-Eh for emacs-devel@gnu.org; Tue, 04 Dec 2007 23:52:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzmFP-00022m-Lf for emacs-devel@gnu.org; Tue, 04 Dec 2007 23:52:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzmFP-00022V-Gm for emacs-devel@gnu.org; Tue, 04 Dec 2007 23:52:35 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzmFP-0002nj-32 for emacs-devel@gnu.org; Tue, 04 Dec 2007 23:52:35 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-163-237.inter.net.il [80.230.163.237]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JNX21504 (AUTH halo1); Wed, 5 Dec 2007 06:52:07 +0200 (IST) In-reply-to: (message from Stefan Monnier on Tue, 04 Dec 2007 17:24:52 -0500) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:84709 Archived-At: > From: Stefan Monnier > Date: Tue, 04 Dec 2007 17:24:52 -0500 > Cc: Juanma Barranquero , emacs-devel@gnu.org > > 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. I'm fine with -unix, but I won't recommend changing that on the Emacs 22 branch, as there's no bug we are fixing here.