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: Setting HOME environment variable in Emacs on Windows has side effects Date: Sun, 08 Dec 2013 16:14:11 -0500 Message-ID: <52A4E123.1080107@gmail.com> References: <52A388CD.8030302@gmail.com> <83ob4rz1i6.fsf@gnu.org> <52A4CC37.1040302@gmail.com> <83lhzvyuj4.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 1386537318 12691 80.91.229.3 (8 Dec 2013 21:15:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Dec 2013 21:15:18 +0000 (UTC) Cc: 16087@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 08 22:15: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 1VplhB-000389-BE for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2013 22:15:21 +0100 Original-Received: from localhost ([::1]:40835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VplhA-0002op-Tx for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2013 16:15:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vplh0-0002ZZ-CI for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 16:15:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vplgt-0001yc-1A for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 16:15:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vplgs-0001xx-UH for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 16:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vplgs-0008QC-CK for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2013 16:15: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 21:15: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.138653725732302 (code B ref 16087); Sun, 08 Dec 2013 21:15:02 +0000 Original-Received: (at 16087) by debbugs.gnu.org; 8 Dec 2013 21:14:17 +0000 Original-Received: from localhost ([127.0.0.1]:38750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vplg9-0008Ov-2L for submit@debbugs.gnu.org; Sun, 08 Dec 2013 16:14:17 -0500 Original-Received: from mail-qa0-f51.google.com ([209.85.216.51]:46985) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vplg6-0008On-RR for 16087@debbugs.gnu.org; Sun, 08 Dec 2013 16:14:15 -0500 Original-Received: by mail-qa0-f51.google.com with SMTP id o15so2077074qap.3 for <16087@debbugs.gnu.org>; Sun, 08 Dec 2013 13:14:14 -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=o34ou5WGMa13BJEOMZeEihHcUCFgncafgDVUkDY2jhU=; b=LumxfyOU+jxV9IvJ52MOZOviF7Fm6BsFfSuWu8j3xYlzpKmvX1E1CP/uOvWtwMIg73 DarL/az9YEhYzeYyBla3aAEWPShCgLmf2BGySgzJrYD5Y/X4hfbwZ/Sjg/oq4lOFBm1g ni7lTnxV00i6ayzKODStZ/VG32OoMQG24ldkOv2jLnY4PBA5DyubfNVAnsv+PcOxFyl8 gXd0meEo35vGutFDC3BKfRYfBQygfafosJE7fZhfaryszhDvi3PjPSYTLnggy+Iy1P20 m0+WP6Q3Vwi3QyEn8gsPJlZcaYj4fm2baB+HqUBK8+nwj+z7aN2g7xvMVaT4izItZlLS p5sQ== X-Received: by 10.224.26.140 with SMTP id e12mr28516564qac.54.1386537254356; Sun, 08 Dec 2013 13:14:14 -0800 (PST) Original-Received: from [18.111.126.181] ([18.111.126.181]) by mx.google.com with ESMTPSA id fc16sm10779525qeb.3.2013.12.08.13.14.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Dec 2013 13:14:13 -0800 (PST) In-Reply-To: <83lhzvyuj4.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:81632 Archived-At: On 12/8/2013 3:09 PM, Eli Zaretskii wrote: > Thanks. So this sounds like a one-time issue, which, once solved to > your satisfaction, should never pop up again, right? A workaround which directly or indirectly prevents this from happening is fine. It hasn't even really been an issue unless I'm trying to access files within the directory containing the .emacs.d for NT-Emacs. I noticed it when I tried to open .emacs.d/init.el for NT-Emacs and it opened the init.el for Emacs-w32 instead. I could isolate the .emacs.d for NT-Emacs inside its own directory, and point to that in HKCU\SOFTWARE\GNU\Emacs\HOME before changing HOME in init.el. That way it's only a problem when trying to edit the init.el for NT-Emacs, which I could workaround by invoking NT-Emacs with --no-init. I just wasn't sure if there were any other apparent side effects to changing the HOME directory in the init.el file. I figured out already that doing so requires changing HOME at the end of init.el, and setting some directory variables to the full path pointing to .emacs.d for NT-Emacs. I also wasn't sure if a better/simpler workaround existed. > As for setting this up, my suggestion would be to set HOME in the > environment to point to the Cygwin's HOME, and augment that by > whatever you need in the Bash init files. Won't that require merging the .emacs.d directories for the two ports? Is there a way of doing this without having them interfere with each other? Cheers, SDS