From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: $HOME default on w32 Date: Mon, 25 Oct 2004 20:12:55 +0100 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098731629 21130 80.91.229.6 (25 Oct 2004 19:13:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 19:13:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 21:13:40 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 1CMAHk-0002rz-00 for ; Mon, 25 Oct 2004 21:13:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMAPP-00041R-2X for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 15:21:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMAPE-0003zk-JX for emacs-devel@gnu.org; Mon, 25 Oct 2004 15:21:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMAPD-0003z9-5d for emacs-devel@gnu.org; Mon, 25 Oct 2004 15:21:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMAPC-0003ym-Vo for emacs-devel@gnu.org; Mon, 25 Oct 2004 15:21:23 -0400 Original-Received: from [194.106.33.237] (helo=outmail.freedom2surf.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CMAHI-0005fS-1H for emacs-devel@gnu.org; Mon, 25 Oct 2004 15:13:12 -0400 Original-Received: from wanchan.jasonrumney.net (i-195-137-77-250.freedom2surf.net [195.137.77.250]) by outmail.freedom2surf.net (8.12.10/8.12.10) with ESMTP id i9PJDAnF022311; Mon, 25 Oct 2004 20:13:10 +0100 Original-Received: from TONKOTSU-RAMEN (tonkotsu-ramen.jasonrumney.net [10.0.0.28]) by wanchan.jasonrumney.net (Postfix) with ESMTP id D8E4EDDD16; Mon, 25 Oct 2004 20:13:08 +0100 (BST) Original-To: Stefan In-Reply-To: (Stefan's message of "Mon, 25 Oct 2004 08:04:44 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28940 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28940 Stefan writes: > It seems that on w32, if HOME is not defined we default it to C:/. > Wouldn't it make more sense to default it to $USERPOFILE (if set) > which on XP seems to typically point to C:/Documents and > Files/ which is about as close to a "home directory" as it gets? The thought has occured to me in the past. We'd need to make sure that existing users who have Emacs related files in C:\ are accounted for. We could perhaps have the installer offer to move their files to $USERPROFILE, but do we know the full set of files we might have to move (including files for external tools that inherit the Emacs process environment when run from Emacs)? The other (easier and hopefully less error prone) option is to check at startup if c:\.emacs exists when defaulting HOME. Is it realistic to expect that a user has no other files in HOME that would be affected if .emacs does not yet exist?