From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: $HOME default on w32 Date: Mon, 25 Oct 2004 22:24:29 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <016e01c4bad3$d6893ac0$0200a8c0@sedrcw11488> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098737297 5487 80.91.229.6 (25 Oct 2004 20:48:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 20:48:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 22:48:05 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 1CMBl6-00032S-00 for ; Mon, 25 Oct 2004 22:48:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMBsl-0002KK-LN for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 16:55:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMBsC-0002BF-Pq for emacs-devel@gnu.org; Mon, 25 Oct 2004 16:55:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMBsB-0002Aa-7n for emacs-devel@gnu.org; Mon, 25 Oct 2004 16:55:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMBsB-0002AX-0X for emacs-devel@gnu.org; Mon, 25 Oct 2004 16:55:23 -0400 Original-Received: from [81.228.11.108] (helo=av1-2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CMBk7-0002m9-Iq; Mon, 25 Oct 2004 16:47:03 -0400 Original-Received: by av1-2-sn1.fre.skanova.net (Postfix, from userid 502) id C5B5D37E87; Mon, 25 Oct 2004 22:47:02 +0200 (CEST) Original-Received: from smtp3-1-sn1.fre.skanova.net (smtp3-1-sn1.fre.skanova.net [81.228.11.163]) by av1-2-sn1.fre.skanova.net (Postfix) with ESMTP id B895737E6A; Mon, 25 Oct 2004 22:47:02 +0200 (CEST) Original-Received: from sedrcw11488 (t1o58p90.telia.com [62.20.164.90]) by smtp3-1-sn1.fre.skanova.net (Postfix) with SMTP id BB8EE37E44; Mon, 25 Oct 2004 22:46:58 +0200 (CEST) Original-To: "Jason Rumney" , "Stefan" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:28944 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28944 ----- Original Message ----- From: "Jason Rumney" : 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? I believe the easier route is the way to go! I think the check for c:\.emacs is enough. - Lennart