From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: What about a seperate "HOME" environment variable under w32? Date: Mon, 25 Apr 2005 19:04:34 +0200 Message-ID: <85ekcyn5y5.fsf@lola.goethe.zz> References: <5065e2900504250508506d7640@mail.gmail.com> <01c549b4$Blat.v2.4$d9d6c880@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114448555 11120 80.91.229.2 (25 Apr 2005 17:02:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2005 17:02:35 +0000 (UTC) Cc: Sun Yijiang , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 25 19:02:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQ6xY-0004J9-0i for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2005 19:01:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ736-0006B4-Bi for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2005 13:07:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQ72q-0006Ay-74 for emacs-devel@gnu.org; Mon, 25 Apr 2005 13:06:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQ72o-0006Am-KL for emacs-devel@gnu.org; Mon, 25 Apr 2005 13:06:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ72o-0004Aw-Dh for emacs-devel@gnu.org; Mon, 25 Apr 2005 13:06:50 -0400 Original-Received: from [151.189.21.49] (helo=mail-in-09.arcor-online.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DQ74E-00044p-Ob; Mon, 25 Apr 2005 13:08:18 -0400 Original-Received: from lola.goethe.zz (i53879640.versanet.de [83.135.150.64]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id B0DB959975; Mon, 25 Apr 2005 19:04:47 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 2F35B1C1E223; Mon, 25 Apr 2005 19:04:34 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: <01c549b4$Blat.v2.4$d9d6c880@zahav.net.il> (Eli Zaretskii's message of "Mon, 25 Apr 2005 19:34:51 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:36373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36373 "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")) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum