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: $USERPROFILE for $HOME on W32 Date: Tue, 23 Nov 2004 20:47:53 +0000 Message-ID: References: <87vfbycsgj.fsf-monnier+emacs@gnu.org> <01c4d0aa$Blat.v2.2.2$95b06680@zahav.net.il> <01c4d150$Blat.v2.2.2$3fa23380@zahav.net.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101242930 19517 80.91.229.6 (23 Nov 2004 20:48:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2004 20:48:50 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 23 21:48:43 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 1CWhad-0002tM-00 for ; Tue, 23 Nov 2004 21:48:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWhjj-0003QR-O3 for ged-emacs-devel@m.gmane.org; Tue, 23 Nov 2004 15:58:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWhjO-0003OU-8A for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:57:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWhjN-0003Nh-0N for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:57:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWhjM-0003Nc-PX for emacs-devel@gnu.org; Tue, 23 Nov 2004 15:57:44 -0500 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 1CWha5-0002LQ-Jb; Tue, 23 Nov 2004 15:48:10 -0500 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 iANKm8nF017079; Tue, 23 Nov 2004 20:48:08 GMT Original-Received: from TONKOTSU-RAMEN (tonkotsu-ramen.jasonrumney.net [10.0.0.28]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 0C5E9DDD43; Tue, 23 Nov 2004 20:48:07 +0000 (GMT) Original-To: Eli Zaretskii In-Reply-To: <01c4d150$Blat.v2.2.2$3fa23380@zahav.net.il> (Eli Zaretskii's message of "Tue, 23 Nov 2004 13:32:24 +0200") 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: , 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:30293 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30293 "Eli Zaretskii" writes: > In any case, if we suspect $HOME is always set on Cygwin, adding it to > the list won't do any harm. It will if $HOME is set to "C:/" deliberately and .emacs does not exist yet. This applies on the native Windows build as well, which is another reason why it would be better to do this in the same place as HOME is set to C:/ (whether we move this to C, or move the current code to Lisp, I have no preference) and do it if HOME is unset rather than if HOME is set to "C:/". I don't think Cygwin has code to default HOME to "C:/" (the cygwin path would be /cygdrive/c/ anyway), if it does then it should probably be "/home" or "/home/$USER" anyway, making it $USERPROFILE does not fit with the Cygwin way of doing things.