From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: saveplace: don't ask for coding system Date: Mon, 03 Dec 2007 22:17:52 -0800 Message-ID: <87sl2j0yr3.fsf@red-bean.com> 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: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196749103 32650 80.91.229.12 (4 Dec 2007 06:18:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 06:18:23 +0000 (UTC) Cc: lekktu@gmail.com, dreitter@inf.ed.ac.uk, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 07:18:31 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 1IzR6v-0003sI-OT for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 07:18:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzR6f-00057F-3U for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 01:18:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzR6a-00055h-7L for emacs-devel@gnu.org; Tue, 04 Dec 2007 01:18:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzR6Z-000544-CY for emacs-devel@gnu.org; Tue, 04 Dec 2007 01:18:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzR6Y-00053l-US for emacs-devel@gnu.org; Tue, 04 Dec 2007 01:18:03 -0500 Original-Received: from sanpietro.red-bean.com ([66.146.193.61]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IzR6V-0007Hb-Tf; Tue, 04 Dec 2007 01:18:00 -0500 Original-Received: from localhost ([127.0.0.1]:57014) by sanpietro.red-bean.com with esmtp (Exim 4.68) (envelope-from ) id 1IzR6R-0002x1-EE; Tue, 04 Dec 2007 00:17:56 -0600 In-Reply-To: (Eli Zaretskii's message of "Tue\, 04 Dec 2007 06\:20\:38 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) 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:84631 Archived-At: Eli Zaretskii writes: > I don't see this as a big problem in this case: this file is useless > for other applications, and almost unreadable by humans. I use this > feature all the time, and I only looked at the file perhaps once or > twice. It's just a huge Lisp expression. It's not useless for other applications; they could parse it. However, I don't know of any actual examples of other applications doing that, so my argument isn't terribly compelling. >> 1. write it out using utf-8 on the trunk (Emacs 23) line >> 2. write it out using emacs-mule on the Emacs 22 line >> 3. make sure that saveplace.el reads the coding system from the >> first line of the file and uses that to interpret the rest of >> the file >> >> Does this seem reasonable to you? > > Yes. > >> (I'm not volunteering for (2) or (3), unfortunately. > > Too bad. Further testing indicates that we get (3) for free (probably due to the way `find-operation-coding-system' works?). So I've implemented (2) now, and I think that means this is done. /cvsroot/emacs/emacs/lisp/saveplace.el,v <-- saveplace.el new revision: 1.37.2.2; previous revision: 1.37.2.1 The upgrade from Emacs 22 to later versions should go smoothly, since Emacs will always read with the coding system specified by the file, and write whatever that version of Emacs should write. (And in fact, even downgrading is unlikely to result in problems, since either utf-8 or emacs-mule will work in the common cases for both versions.) -Karl