NT Emacs gets a number of values from the registry, e.g., initial font,
geometry, etc. HOME could be included. I've seen code in XEmacs for reading
the registry, so it seems that not all that much would have to be done. I'm
not fond of the registry itself, but it's where Windows wants to store
configuration settings.
Right now, I'm using Kirill's "evilhack" method for setting initial font
and
geometry info. While this works, it's not very general.
Or, has the registry already been discussed and dismissed?
Rick
-----Original Message-----
From: Paul Stodghill <stodghil(a)CS.Cornell.EDU>
To: Kirill M. Katsnelson <kkm(a)kis.ru>
Cc: xemacs-beta(a)xemacs.org <xemacs-beta(a)xemacs.org>; xemacs-nt(a)xemacs.org
<xemacs-nt(a)xemacs.org>
Date: Tuesday, May 26, 1998 7:34 AM
Subject: Re: 21.0 beta41, cygwin32, ~init-file-user doesn't work.
> Some time ago, Hrvoje Niksic wrote...
> |+
> | Whatever we do, please note that (getenv "HOME") is definitely the
> | Wrong Thing to do. We should create a `user-home-directory' function
> | which would do the necessary magic of finding a system-specific home
> | directory. All the places that use (getenv "HOME") should be fixed to
> | use the new function.
> |
> | The suggestion comes from Ben.
>
> I think the better approach under Windows is to have a place for
> .emacs and stuff configurable.
>
> [ using a setup program to initialize XEmacs's notion of $HOME. ]
>
> Kirill
This would be great for the binary distribution, but we still have to
figure out what needs to be done when compiling from source.
And another thing, using (getenv "HOME") is probably the right thing to use
for `user-home-directory' under Cygwin32. BASH and TCSH both use
(getenv "HOME") to determine `~', so XEmacs should probably also...
Thanks, guys.
--
Paul Stodghill <stodghil(a)cs.cornell.edu>
http://www.cs.cornell.edu/stodghil/