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.
Usually a program is installed by a setup program in a directory
with subdirectories. For XEmacs binary distribution, this would
be a usual structure of XEmacs direcotries (bin, etc, lisp), with
additional directories for packages (/packages), and user's
files directories (/init for example), where .emacs goes by default.
This is ok for a single user installation.
For a multi-user or network install, usually there is setup program
which sets up the already installed software for a new user of it.
It usually creates icons, registry settings etc. This portion would
ask for a place for user private package directory, .emacs etc.
`user-home-directory' should work in this case; maybe the name
should be changed to `xemacs-private-files-directory' or something
like that, not to be confused with real "home direcotry" concept.
Kirill