From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: SDS Newsgroups: gmane.emacs.bugs Subject: bug#16087: Re: bug#16087: Setting HOME environment variable in Emacs on Windows has side effects Date: Sun, 08 Dec 2013 14:44:55 -0500 Message-ID: <52A4CC37.1040302@gmail.com> References: <52A388CD.8030302@gmail.com><83ob4rz1i6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1386531978 23814 80.91.229.3 (8 Dec 2013 19:46:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Dec 2013 19:46:18 +0000 (UTC) Cc: 16087@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 08 20:46:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VpkJ2-0002KI-1g for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2013 20:46:20 +0100 Original-Received: from localhost ([::1]:40612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VpkJ1-0000NT-H2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2013 14:46:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VpkIr-0000NG-Vg for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 14:46:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VpkIk-0003g7-Kn for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 14:46:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VpkIk-0003g1-HI for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 14:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VpkIk-0006Aa-4F for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 14:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: SDS Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Dec 2013 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16087-submit@debbugs.gnu.org id=B16087.138653190523644 (code B ref 16087); Sun, 08 Dec 2013 19:46:02 +0000 Original-Received: (at 16087) by debbugs.gnu.org; 8 Dec 2013 19:45:05 +0000 Original-Received: from localhost ([127.0.0.1]:38612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VpkHo-00069F-Nk for submit@debbugs.gnu.org; Sun, 08 Dec 2013 14:45:05 -0500 Original-Received: from mail-qe0-f48.google.com ([209.85.128.48]:59939) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VpkHj-00068W-A1 for 16087@debbugs.gnu.org; Sun, 08 Dec 2013 14:44:59 -0500 Original-Received: by mail-qe0-f48.google.com with SMTP id gc15so2142797qeb.35 for <16087@debbugs.gnu.org>; Sun, 08 Dec 2013 11:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=0ANQRhV6w56GjgNcGSKOQ0/n3atORHilkvOLNZWtEFA=; b=BqKHebSh+bbrQgIlrGbYRcCRS1Ey5oFfdNR/gwrp5YmkPIyR3LBzrX+LtU9kYszDym ksbI6bHoT1abOH9cLhyZPkdnyhIwm51TmJsjZZWGG1Jel3nUftVF1rZ0BRPwbxcMRwHv ia3HJMO6xUybYAJKChYxTwC+pBU+sSU/tISdZjAplZPdcBwucmlng9XFwikEGVfIm6ob BOJajka33UceNGO/mcyFuSFkWy3exe0MQvHcfBDUvNxZbsxD+FASvdvHEUdZNhY9HTR9 3RY0Dd7Ssq2yqu/FpAnXyowKLQhMbz5lGHwEGTMqHkh4FRnp5YP0w/E2wZ1+nXNhj/DK LhQw== X-Received: by 10.49.98.35 with SMTP id ef3mr27534631qeb.30.1386531898750; Sun, 08 Dec 2013 11:44:58 -0800 (PST) Original-Received: from [18.111.126.181] ([18.111.126.181]) by mx.google.com with ESMTPSA id 4sm23560879qak.11.2013.12.08.11.44.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Dec 2013 11:44:58 -0800 (PST) In-Reply-To: <83ob4rz1i6.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81630 Archived-At: On 12/8/2013 12:38 PM, Eli Zaretskii wrote: > OTOH, the use case for supporting such a strange change in the middle > of an Emacs session is entirely not clear to me. On the contrary, it > seems to me like doing this is asking for a lot of trouble, and not > only in Emacs (because 'setenv' modifies process-environment, so every > subprocess will get this new value of HOME, so, e.g., the shell will > not find its init files). Could you please describe why you needed > this? On Windows, I have two versions of Emacs running: a Cygwin port (Emacs-w32) and a GNU port (NT-Emacs). I was originally using Emacs-w32 because it supports some Cygwin utilities that aren't supported by NT-Emacs (e.g. Cygwin bash, Cygwin OpenSSH). However, Cygwin's port was aborting frequently. The Cygwin Emacs maintainer said it was another application interfering, but I had removed all that I had installed from their list of such applications (BLODA) and it hadn't fixed the aborting. I didn't have the time to debug the issue any further, so I decided to switch workflow to NT-Emacs until I could fix Emacs-w32. At the moment, I have two separate .emacs.d directories for each of the two ports. I didn't want to use a single .emacs.d directory for both ports because I'm not sure if they would play nicely with each other. I also don't want issues with one to be carried over to the other. So I have my HKCU\SOFTWARE\GNU\Emacs\HOME registry key pointing to a directory with the .emacs.d for NT-Emacs, while my .emacs.d for Emacs-w32 is in my Cygwin HOME directory. Ultimately, I'd like my HOME variable in NT-Emacs to point to the Cygwin HOME directory. This allows any Cygwin utilities used by NT-Emacs to have HOME set correctly. Also, I'd like ~ to be set to the Cygwin HOME directory. I tried changing it in init.el, and that's where this issue arose. Cheers, SDS