From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Migrating .emacs Configuration File to Newer Emacsen Date: Mon, 08 Aug 2005 12:28:32 -0600 Message-ID: References: <1122923897.42ee75795d293@www.x-mail.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1123526111 18996 80.91.229.2 (8 Aug 2005 18:35:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 18:35:11 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 20:35:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2CRR-0006jQ-Dm for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 20:33:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2CUS-0006y8-J9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 14:36:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2CUO-0006xp-Ez for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2005 14:36:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2CUL-0006wv-Ny for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2005 14:36:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2CUL-0006wL-ED for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2005 14:36:41 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E2CeU-0004R8-7h for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2005 14:47:10 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E2CPJ-0006Nd-PA for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2005 20:31:29 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2005 20:31:29 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2005 20:31:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <1122923897.42ee75795d293@www.x-mail.net> X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:12687 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12687 Norbert Grün wrote: > Copying the .emacs file over to Cygwin's place resulted in a spate of > error messages during Emacs 21.2.1 startup, I'd rather expected a few > from file system references which are only three in two commands. > > Aye, I can fire up both and tediously browse both customisation trees > one by one, but I'd prefer a tool that takes the old .emacs file and > converts it to the new format. Perhaps in a "migrate.el(c)?" thus > using Emacs' power? The problem is that .emacs can contain any Emacs Lisp form, so it's not amenable to conversion -- except for the forms inserted by custom. Is it possible to dump the entire customization tree, perhaps by writing out every customizable variable (whether it was actually customized or not)? Doing so in an uncustomized emacs would give you a file for a simple diff-based comparison between 2 different Emacs versions -- it could even be included in the distribution. Of course, someone would have to go back and generate that file for previously released versions of Emacs, but it might be a worthwhile exercise. If the differences between 2 Emacs versions can be resolved by mapping old variable names to new ones etc. then it should be possible to write a useful version of migrate.el -- Kevin Rodgers