"Kirill M. Katsnelson" <kkm(a)kis.ru> wrote:
Some time ago, Glynn Clements wrote...
|+
| Does NT have any notion of per-user home directories? If it doesn't,
| then ~username isn't really meaningful, I guess.
|-
Yes and no.
Well, would the following patch help? I submitted it back in
March, but it never made it into the source tree (and I didn't get any
feedback why it was bad). Here's the changelog, which describes what it
does:
-------------------------------------------------------------------------------
Wed Mar 11 11:37:17 1998 Darryl Okahata <darrylo(a)sr.hp.com>
* emacs.c: Rearrange NT initialization order so that
environment/registry variables will be properly entered into
Vprocess_enviroment.
* nt.c: If $HOME isn't set, initialize $HOME to be
"$HOMEDRIVE$HOMEPATH", if HOMEDRIVE and HOMEPATH are set (this is
for Windows NT). Otherwise, default HOME to the current
directory, which is what XEmacs currently does (without this
patch).
Should this be changed to force HOME to be C:/, if HOME isn't set?
Setting it to "C:/" is probably consistent with NTEmacs, but it's
different from the way XEmacs currently works (without this
patch).
-------------------------------------------------------------------------------
The attached patch is relative to B30 (yea, this is old). If people
like it, I'll migrate it to B41 and submit it to -patches.
-- Darryl Okahata
Internet: darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.