From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: What about a seperate "HOME" environment variable under w32? Date: Wed, 27 Apr 2005 18:54:29 +0100 Message-ID: <426FD1D5.2090104@gnu.org> References: <5065e2900504250508506d7640@mail.gmail.com> <01c549b4$Blat.v2.4$d9d6c880@zahav.net.il> <85ekcyn5y5.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114624594 29378 80.91.229.2 (27 Apr 2005 17:56:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2005 17:56:34 +0000 (UTC) Cc: Eli Zaretskii , Sun Yijiang , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 27 19:56:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQqkp-0005NY-4l for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 19:55:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQqqn-0000mq-4C for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 14:01:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQqqP-0000eL-3Q for emacs-devel@gnu.org; Wed, 27 Apr 2005 14:01:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQqqN-0000dI-3o for emacs-devel@gnu.org; Wed, 27 Apr 2005 14:01:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQqqM-0000Qp-WF for emacs-devel@gnu.org; Wed, 27 Apr 2005 14:01:03 -0400 Original-Received: from [217.207.198.106] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQqot-0000jO-Mm; Wed, 27 Apr 2005 13:59:31 -0400 Original-Received: from ASSP-nospam (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2RRVM11B; Wed, 27 Apr 2005 18:53:59 +0100 Original-Received: from 212.183.132.218 ([212.183.132.218] helo=[10.164.11.158]) by ASSP-nospam ; 27 Apr 05 17:53:43 -0000 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en Original-To: David Kastrup In-Reply-To: <85ekcyn5y5.fsf@lola.goethe.zz> 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: news.gmane.org gmane.emacs.devel:36456 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36456 David Kastrup wrote: >"Eli Zaretskii" writes: > > > >>>Date: Mon, 25 Apr 2005 20:08:51 +0800 >>>From: Sun Yijiang >>> >>>The %HOME% environment variable is used by many programs under w32, so it's >>>really a mess sometime. >>> >>> >>Is HOME used for any other purpose than Emacs does: to store the >>user's private init files? If some programs use HOME for conflicting >>purposes, could you please name those programs and describe the >>details? >> >> >> >>>I suggest Emacs use a different HOME variable=20 >>>underw32, something like %EMACS_HOME% or %EHOME%. >>> >>> >>I don't think we should introduce such a variable without a very good >>reason; hence the questions above. >> >> > >kpathsea, the library for most TeX systems, has a scheme where you can >override most environment variables on a per-application base. > >An analog construction for Emacs would be to something like >(or (getenv "HOME.emacs") (getenv "HOME")) > > > If HOME is not set as an environment variable on w32, Emacs will read it from the registry (also used as the equivalent of .Xdefaults). Perhaps we could change the priority of these, so that the registry overrides the environment, since users are unlikely to set a specific HOME for Emacs in the registry and then expect to override it by changing their environment.