unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: multiple Emacs versions on w32
Date: Wed, 15 Mar 2006 21:19:33 +0100	[thread overview]
Message-ID: <67CC4AB2-CBFE-40C0-B707-AC69B41FB703@Web.DE> (raw)
In-Reply-To: <JRWRf.12719$S25.12446@newsread1.news.atl.earthlink.net>


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!

  parent reply	other threads:[~2006-03-15 20:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15 15:59 multiple Emacs versions on w32 B. T. Raven
2006-03-15 19:27 ` Eli Zaretskii
2006-03-15 20:19 ` Peter Dyballa [this message]
     [not found] ` <mailman.73.1142450879.9686.help-gnu-emacs@gnu.org>
2006-03-16 17:22   ` B. T. Raven
2006-03-17 11:22     ` Eli Zaretskii
     [not found]     ` <mailman.7.1142594542.3794.help-gnu-emacs@gnu.org>
2006-03-19 21:37       ` B. T. Raven
  -- strict thread matches above, loose matches on Subject: below --
2006-03-15 16:14 Phillip Lord
2006-03-15 16:54 ` Lennart Borgman
2006-03-15 19:31 ` Eli Zaretskii
2006-03-16 12:38 Phillip Lord
2006-03-16 16:40 ` Kevin Rodgers
2006-03-17 10:36 ` Eli Zaretskii
     [not found] ` <mailman.0.1142871972.6116.help-gnu-emacs@gnu.org>
2006-03-21 15:56   ` Phillip Lord
2006-03-20 16:44 Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67CC4AB2-CBFE-40C0-B707-AC69B41FB703@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).