help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running multiple Emacs versions


From: Tim X
Subject: Re: running multiple Emacs versions
Date: Sat, 13 Feb 2010 10:41:26 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

nchubrich <nicholas.chubrich@gmail.com> writes:

> I would like to run both Aquamacs and a compiled version of Emacs 23,
> for different purposes.  Presumably they will need different
> configurations.  How can I do this, seeing as there is one .emacs
> file?
>
> Thanks,
>
> Nick Chubrich.

Using one .emacs file is probably not going to be the big issue. Your
problem is likely to be byte code incompatibility, especially as emacs
23 moved to utf-8 encoding, which makes the *.elc files incompatible
with versions prior to 23. Emacs 23 can read older *.elc files, but it
does a translation/conversion process 'on the fly' which can
substantially slow down file loading etc.

There are ways around all of this, but take a bit of work. As an
example, you cold look at how Debian/Ubuntu handle running multiple
emacs versions at the same time. For your init file, look at initz (see
emacs wiki). I htink there is some other info on this in the wiki as
well. 

For your .emacs, you may be able to just get by using simple 'when'
blocks for the version specific stuff i.e.

(when (= emacs-major-version 23)
  ;; do 23 specific stuff
)

HTH

Tim

 


-- 
tcross (at) rapttech dot com dot au


reply via email to

[Prev in Thread] Current Thread [Next in Thread]