unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* multiple Emacs versions on w32
@ 2006-03-15 15:59 B. T. Raven
  2006-03-15 19:27 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: B. T. Raven @ 2006-03-15 15:59 UTC (permalink / raw)


I am using both 21.3 and 22.0.50.1 on the same machine (w32-msw98).
Autoexec.bat has "set HOME=d:\emacs"; emacs 21.3 is in d:\emacs\emacs21.3
and the cvs version is in e:\emacs\emacs. Both start with --debug-init
which doesn't report any problems. Since the .emacs is in the home
directory, the two versions are stomping all over each other. 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? For
now I use the cvs version only for its more complete documentation and for
tutorial purposes since it won't run for longer than a couple of hours
without causing a segmentation fault.

Thanks,

Ed

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: multiple Emacs versions on w32
@ 2006-03-15 16:14 Phillip Lord
  2006-03-15 16:54 ` Lennart Borgman
  2006-03-15 19:31 ` Eli Zaretskii
  0 siblings, 2 replies; 14+ messages in thread
From: Phillip Lord @ 2006-03-15 16:14 UTC (permalink / raw)


B. T. Raven wrote:
> I am using both 21.3 and 22.0.50.1 on the same machine (w32-msw98).
> Autoexec.bat has "set HOME=d:\emacs"; emacs 21.3 is in
> d:\emacs\emacs21.3 and the cvs version is in e:\emacs\emacs. Both
> start with --debug-init which doesn't report any problems. Since the
> .emacs is in the home directory, the two versions are stomping all
> over each other. 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? For now I use the
> cvs version only for its more complete documentation and for tutorial
> purposes since it won't run for longer than a couple of hours without
> causing a segmentation fault. 
> 



There are a couple of options. 

Either launch emacs with "-q -l ~/.emacs.22" (or what ever file
you want to use). 

Or alternatively you could use the emacs-version variable, and 
have your .emacs work appropriately. You'd need check that your
`custom-file' is being set appropriately. 

Incidentally, emacs should not seg fault after a couple of hours. 
I'm using the emacs-w32 from here. 
http://ourcomments.org/Emacs/EmacsW32.html

I use the unpatched version without the W32 integration layer. 
This works well for me. I think I got it to core dump once, but
not repeatedly. 

Cheers

Phil

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: multiple Emacs versions on w32
@ 2006-03-16 12:38 Phillip Lord
  2006-03-16 16:40 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Phillip Lord @ 2006-03-16 12:38 UTC (permalink / raw)


Eli Zaretskii wrote:
>> Date: Wed, 15 Mar 2006 16:14:00 -0000
>> From: "Phillip Lord" <Phillip.Lord@newcastle.ac.uk>
>> Cc:
>> 
>> launch emacs with "-q -l ~/.emacs.22" (or what ever file
>> you want to use).
> 
> That won't produce the same effect as a .emacs file, since the init
> file is loaded at a different stage of the startup process than files
> loaded through -l.  The OP could have subtle problems if he used this
> suggestion.

True enough, but the problems are likely to more subtle than the 
crashes they reported. 

Of course, emacs shouldn't be core dumping, and solving this problem
seems the best course to me. 

Having said that, I've used this technique for years -- I normally
use two emacs, one for email and one for everything else (checking email
from the server can take a while, and emacs is single threaded). 


 
>> Or alternatively you could use the emacs-version variable, and
>> have your .emacs work appropriately. You'd need check that your
>> `custom-file' is being set appropriately.
> 
> But this won't solve the original problem, as I understand it: that
> Emacs updates .emacs when you save certain settings.  Setting
> `custom-file' is not going to resolve this 100%, as some packages
> write to .emacs.


I agree. The disabled commands option writes to .emacs. 

If I may be so bold, I think that this is a problem with emacs. 
Really, all packages which write to somewhere should be configurable
through a single variable. 

Cheers

Phil

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: multiple Emacs versions on w32
@ 2006-03-20 16:44 Phillip Lord
  0 siblings, 0 replies; 14+ messages in thread
From: Phillip Lord @ 2006-03-20 16:44 UTC (permalink / raw)


Eli Zaretskii wrote:
>> Date: Thu, 16 Mar 2006 12:38:12 -0000
>> From: "Phillip Lord" <Phillip.Lord@newcastle.ac.uk>
>> 
>> Of course, emacs shouldn't be core dumping, and solving this problem
>> seems the best course to me.
> 
> Yes, of course.  But to fix a bug, we need to hear the details and
> preferably to reproduce it on some of the developers' machine(s).
> Which unfortunately didn't happen in this case yet.

Eli

My apologies if this appeared to be a criticism of the developers. 
What I meant was that if the OP's only reason for wishing to maintain
two Emacs' up is because of one version crashing, then their best course
of action would be to spend effort working out why it was crashing 
rather than how to run two at once. 

It's clearly true that the developers can't fix something that they
don't know about or can't reproduce. 


>> I agree. The disabled commands option writes to .emacs.
>> 
>> If I may be so bold, I think that this is a problem with emacs.
> 
> Feel free to ask for such a feature on the developers' list.  Here, I
> just tried to save a naive user some possible grief.

Again, you are right. I didn't mean to complicate things which should 
be left simple. 

Cheers

Phil;

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-03-21 15:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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

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).