From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: multiple Emacs versions on w32 Date: Wed, 15 Mar 2006 21:19:33 +0100 Message-ID: <67CC4AB2-CBFE-40C0-B707-AC69B41FB703@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142454038 21694 80.91.229.2 (15 Mar 2006 20:20:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Mar 2006 20:20:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 15 21:20:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJcTJ-0007Et-FS for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Mar 2006 21:19:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJcTI-0001mj-Rz for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Mar 2006 15:19:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FJcT6-0001hc-CC for help-gnu-emacs@gnu.org; Wed, 15 Mar 2006 15:19:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FJcT5-0001ev-5b for help-gnu-emacs@gnu.org; Wed, 15 Mar 2006 15:19:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJcT5-0001ec-0x for help-gnu-emacs@gnu.org; Wed, 15 Mar 2006 15:19:39 -0500 Original-Received: from [217.72.192.242] (helo=fmmailgate04.web.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FJcXZ-0003xf-Gc for help-gnu-emacs@gnu.org; Wed, 15 Mar 2006 15:24:17 -0500 Original-Received: by fmmailgate04.web.de (8.12.10/8.12.10/webde Linux 0.7) with ESMTP id k2FKJZVf007230; Wed, 15 Mar 2006 21:19:35 +0100 Original-Received: from [87.193.40.101] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.106 #94) id 1FJcT1-0005wG-00; Wed, 15 Mar 2006 21:19:35 +0100 In-Reply-To: X-Priority: 3 X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: "B. T. Raven" X-Mailer: Apple Mail (2.746.3) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33812 Archived-At: Am 15.03.2006 um 15:59 schrieb B. T. Raven: > For example,even if I hide the versions from each other they seem > to update > the .emacs in different ways (probably due to subtle changes in the > side > effects of functions or in the use of built in variables. display- > time, > iswitchb, and recentf-mode work differently. Is there any way that > I can > parameterize the invocation of the two versions or at least set > them up so > as to allow each one to load its own separate version of the dotemacs? I made the same experience having more than half a dozen Emacsen (four major versions) ... (for fun!) This is the cure: (if (not (string-match "XEmacs" mEV)) (progn (setq custom-file (format "~/.emacs-Abrichtung-%d.el" emacs- major-version)) (load (format "~/.emacs-Abrichtung-%d.el" emacs-major-version)) ; (add-hook 'write-file-hooks 'time-stamp) (add-hook 'before-save-hook 'time-stamp) )) The German word Abrichtung means something like training, training a horse, i.e. part of a "customisation." mEV is: (defconst mEV (emacs-version) "Keep the Emacs version string, that is needed a few times.") Before you put this block into .emacs you should copy the recent .emacs file to the new files and remove all non-custom-set- variables and all non-custom-set-faces, i.e. remove from top to the first "(custom-" line. Then remove in .emacs all contents from the first "(custom-" line until the end. Then you'll have some opportunities to adapt the two "training" files' contents to what each version accepts ... -- Greetings Pete Chicago, n.: Where the dead still vote ... early and often!