From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.devel Subject: Re: $USERPROFILE for $HOME on W32 Date: Wed, 24 Nov 2004 08:17:03 +0000 Message-ID: References: <87vfbycsgj.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1101284331 2407 80.91.229.6 (24 Nov 2004 08:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2004 08:18:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 09:18:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWsMG-0006Gx-00 for ; Wed, 24 Nov 2004 09:18:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWsVP-0000ud-GT for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2004 03:28:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWsV4-0000u2-7u for emacs-devel@gnu.org; Wed, 24 Nov 2004 03:27:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWsV2-0000tK-Vk for emacs-devel@gnu.org; Wed, 24 Nov 2004 03:27:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWsV2-0000sz-Kh for emacs-devel@gnu.org; Wed, 24 Nov 2004 03:27:40 -0500 Original-Received: from [207.8.226.5] (helo=orb.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWsLC-0007f4-7A for emacs-devel@gnu.org; Wed, 24 Nov 2004 03:17:30 -0500 Original-Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 46E1A2F9FA3; Wed, 24 Nov 2004 03:17:29 -0500 (EST) Original-Received: from filth.shootybangbang.com (host217-44-221-75.range217-44.btcentralplus.com [217.44.221.75]) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id 7A73C2F8D80; Wed, 24 Nov 2004 03:17:27 -0500 (EST) Original-To: Stefan Monnier In-reply-to: <87vfbycsgj.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Mon, 22 Nov 2004 01:26:51 -0500) X-Mailer: Norman X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30305 > To follow up on the thread, here is a suggested patch. > Any objection? Disclaimer: I don't know much about Windows. I think that MIT/GNU Scheme Edwin uses HOMEDRIVE and HOMEPATH rather than USERPROFILE. I noticed that on an NT 3.51 system HOMEDRIVE and HOMEPATH have sane values but USERPROFILE isn't defined. On an XP system USERPROFILE is the same as concatenating HOMEDRIVE and HOMEPATH. Perhaps we could fall back on using HOMEDRIVE and HOMEPATH if USERPROFILE doesn't exist or isn't writable ?