From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Fran=C3=A7ois_?= =?UTF-8?Q?F=C3=A9votte?= Newsgroups: gmane.emacs.bugs Subject: bug#15539: Setting user-emacs-directory at command line invocation Date: Mon, 16 Mar 2015 08:28:47 +0100 Message-ID: References: <87wqlqiayq.fsf@carifio.org> <8uk2yhg4m2.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426490969 25666 80.91.229.3 (16 Mar 2015 07:29:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 07:29:29 +0000 (UTC) Cc: 15539@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 08:29:19 2015 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 1YXPSg-00055P-Ug for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 08:29:19 +0100 Original-Received: from localhost ([::1]:47667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXPSf-0008Jk-Cv for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 03:29:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXPSX-0008E8-Rl for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:29:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXPSQ-0003QV-Jg for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:29:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXPSQ-0003QR-Fv for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXPSQ-00032g-4i for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Fran=C3=A7ois_?= =?UTF-8?Q?F=C3=A9votte?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Mar 2015 07:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15539-submit@debbugs.gnu.org id=B15539.142649093111673 (code B ref 15539); Mon, 16 Mar 2015 07:29:02 +0000 Original-Received: (at 15539) by debbugs.gnu.org; 16 Mar 2015 07:28:51 +0000 Original-Received: from localhost ([127.0.0.1]:48010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXPSE-00032B-Pf for submit@debbugs.gnu.org; Mon, 16 Mar 2015 03:28:51 -0400 Original-Received: from mail-qg0-f49.google.com ([209.85.192.49]:33746) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXPSC-000322-3x for 15539@debbugs.gnu.org; Mon, 16 Mar 2015 03:28:48 -0400 Original-Received: by qgfa8 with SMTP id a8so33076452qgf.0 for <15539@debbugs.gnu.org>; Mon, 16 Mar 2015 00:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=C33UhNhLCBH4NvviX8htzLcictO3zQjckkYUsjmYFUM=; b=Xkxr0xkI+WuatUtG7zvXmjSMaBxg1zCaXclWmBodXHP/cwA8O9ePi92CRl2i7SKwUe lWBFX0rTbfcUn/fcnsz3PSLWoZCyuPlA58wTCvn1yfkZAcP8rgeY3rldZu4XSkdFI/Hf ASmxvsq59ob7uB4Zkv0m0Ww1JcDVudhOsLbpN3GE1oJZffH2dvZCOWEF3oi40I1r7iSE tiAixTD2gC8uJ+PKNRW6znQ1VV7toeNdk/187fhO44IakDAbOP6GgsEQ5Xp+i4rQGC94 b7DF+v4gjSlmlVFCkZkJ8KBnJrFIm0NL677EuL9A2zfphViPzH56RG7tGSQzoPXS1Tco zf1g== X-Received: by 10.140.19.237 with SMTP id 100mr72158906qgh.24.1426490927760; Mon, 16 Mar 2015 00:28:47 -0700 (PDT) Original-Received: by 10.229.233.195 with HTTP; Mon, 16 Mar 2015 00:28:47 -0700 (PDT) In-Reply-To: <8uk2yhg4m2.fsf@fencepost.gnu.org> X-Google-Sender-Auth: U3UNc7xfOTsaYjnyg5OFgcgJn_o 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:100515 Archived-At: Hi, thanks for your comment. On Mon, Mar 16, 2015 at 1:36 AM, Glenn Morris wrote: > I'm not saying it's the right solution, but you could use an environment > variable (eg EMACS_USER_DIRECTORY) rather than a command-line switch to > control this. This would be consistent with eg EMACSDATA, and also I > think with how other applications normally let you control where they > look for their init files (?). But on the other hand, environment > variables can be easier to overlook than explicit flags eg when > debugging. Yes, you're right, this is a very good idea. I'll develop a new patch for this as soon as I can. > On the other other hand, the OP could just do > > ln -s mine.d .emacs.d > > so I'm not sure what the point of this feature would be, unless eg you > frequently want to swap between different .emacs.d's? I'm not sure about the OP's use case, but I can tell about mine: at work, I try to maintain a sensible set of init files for my co-workers to use (with the very outdated default version that we have installed by default on our systems: 23.2). On the other hand, on my machine, I maintain a locally-installed Emacs version that is more up-to-date. In order to maintain both sets of init files, I need to be able to run both versions of Emacs at the same time, which prevents me from symlinking ~/.emacs.d/ There are reddit and stackexchange questions hinting at the same kind of us= e: http://www.reddit.com/r/emacs/comments/2y1b3a/how_can_i_easily_keep_differe= nt_emacsd_folders/ http://emacs.stackexchange.com/q/4253/221 Since these questions concern a broader audience, do you think that we should add emacs-devel to this discussion? Thanks, Fran=C3=A7ois