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: Tue, 17 Mar 2015 11:08: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: multipart/mixed; boundary=001a1134ef2616912e0511792742 X-Trace: ger.gmane.org 1426586960 16869 80.91.229.3 (17 Mar 2015 10:09:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2015 10:09:20 +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 Tue Mar 17 11:09:13 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 1YXoQx-0003Ni-Hk for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2015 11:09:11 +0100 Original-Received: from localhost ([::1]:53594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXoQw-0002oV-HT for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2015 06:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXoQs-0002oL-PW for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 06:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXoQp-00059O-Aa for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 06:09:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXoQp-00059A-7s for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 06:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXoQo-0006In-8I for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 06:09: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: Tue, 17 Mar 2015 10:09: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.142658693224203 (code B ref 15539); Tue, 17 Mar 2015 10:09:02 +0000 Original-Received: (at 15539) by debbugs.gnu.org; 17 Mar 2015 10:08:52 +0000 Original-Received: from localhost ([127.0.0.1]:49205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXoQd-0006II-P1 for submit@debbugs.gnu.org; Tue, 17 Mar 2015 06:08:52 -0400 Original-Received: from mail-qg0-f53.google.com ([209.85.192.53]:36248) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXoQa-0006I9-HP for 15539@debbugs.gnu.org; Tue, 17 Mar 2015 06:08:49 -0400 Original-Received: by qgf3 with SMTP id 3so3260741qgf.3 for <15539@debbugs.gnu.org>; Tue, 17 Mar 2015 03:08:48 -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; bh=IBAOFGhnFFfDKf6Yr0OK0acU5upbk6JD3l3dDrpT6p0=; b=MX3fVAugY9zuZ3eekjZueIbRaNiuYz5HacxWrQ0lQx29+kzTwR08SCG1DWZdNHQvuD 0K7bQnvcnT0xd9x0plIHPIPj6Xuh37rqyN9ez6DT4NuYxtw6t2HabW7rt0Z8iDlFbVuw xJ7MYNIv/4sx1W9LlD0OzqhKS7v7x1znHzVDAoHlxfekJWjWFb5e8Ftgxwc5btCrjT/c VegCTKTYQ2deJRn+fz3M3Z6lJSmelr9M9yW7PwamKAPBbEkyxWNNYu3AwlmiM0arq3D4 SzZdWqGm+smmX615Lhfw06J5Yn7tpaQLQGpSj05ZJTIwsXSKxsPWw/VEE0Ix5n2Gsxj7 jM1g== X-Received: by 10.140.19.237 with SMTP id 100mr79016270qgh.24.1426586928010; Tue, 17 Mar 2015 03:08:48 -0700 (PDT) Original-Received: by 10.229.233.195 with HTTP; Tue, 17 Mar 2015 03:08:47 -0700 (PDT) In-Reply-To: <8uk2yhg4m2.fsf@fencepost.gnu.org> X-Google-Sender-Auth: Ga0U2ELD9s9EdfSTOoiDhFNEVcQ 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:100580 Archived-At: --001a1134ef2616912e0511792742 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. Attached is a new patch implementing this idea. The differences with respect to the first version are: 1- `user-emacs-directory' is read in the `EMACS_USER_DIRECTORY' environment variable instead of from the command-line; 2- a few custom variables are declared in `custom-delayed-init-variables' in order to account for the new value of `user-emacs-directory'. Once again, please don't hesitate to comment. Fran=C3=A7ois --001a1134ef2616912e0511792742 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Look-for-an-EMACS_USER_DIRECTORY-environment-variabl.patch" Content-Disposition: attachment; filename="0001-Look-for-an-EMACS_USER_DIRECTORY-environment-variabl.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i7d4r51a0 RnJvbSBmOThkMmFmMDhkMjM0NjEyMTU1NmY0ZmQ5MTYyOGRjMDMxNmNiZmYwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/RnJhbj1DMz1BN29pcz0yMEY9QzM9QTl2b3R0 ZT89IDxmZXZvdHRlQGdtYWlsLmNvbT4KRGF0ZTogVHVlLCAxNyBNYXIgMjAxNSAwODo1MDowMSAr MDEwMApTdWJqZWN0OiBbUEFUQ0hdIExvb2sgZm9yIGFuIGBFTUFDU19VU0VSX0RJUkVDVE9SWScg ZW52aXJvbm1lbnQgdmFyaWFibGUuCgpUaGlzIHNldHMgYHVzZXItZW1hY3MtZGlyZWN0b3J5JyBh bmQgbG9va3MgZm9yIGBpbml0LmVsJyBpbiBpdC4KCkZpeGVzOiBidWcjMTU1MzkKLS0tCiBkb2Mv ZW1hY3MvY21kYXJncy50ZXhpIHwgICAgOSArKysrKysrKy0KIGRvYy9lbWFjcy9jdXN0b20udGV4 aSAgfCAgICA4ICsrKysrKysrCiBsaXNwL2N1c3RvbS5lbCAgICAgICAgIHwgICAgMSArCiBsaXNw L3N0YXJ0dXAuZWwgICAgICAgIHwgICAyMSArKysrKysrKysrKysrKysrKy0tLS0KIDQgZmlsZXMg Y2hhbmdlZCwgMzQgaW5zZXJ0aW9ucygrKSwgNSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9k b2MvZW1hY3MvY21kYXJncy50ZXhpIGIvZG9jL2Vt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AobG9hZCB1c2VyLWlu aXQtZmlsZS0xIHQgdCkpCiAKIAkJICAgICAgKHdoZW4gKGVxIHVzZXItaW5pdC1maWxlIHQpCiAJ CQk7OyBJZiB3ZSBkaWQgbm90IGZpbmQgfi8uZW1hY3MsIHRyeQpAQCAtMTExNCw3ICsxMTI1LDkg QEAgcGxlYXNlIGNoZWNrIGl0cyB2YWx1ZSIpCiAJCQkgICAgICAgKGV4cGFuZC1maWxlLW5hbWUK IAkJCQkiaW5pdCIKIAkJCQkoZmlsZS1uYW1lLWFzLWRpcmVjdG9yeQotCQkJCSAoY29uY2F0ICJ+ IiBpbml0LWZpbGUtdXNlciAiLy5lbWFjcy5kIikpKSkpCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAoaWYgdXNlci1lbWFjcy1kaXJlY3RvcnktLWZyb20tZW52CisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgdXNlci1lbWFjcy1kaXJlY3RvcnkKKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNvbmNhdCAifiIgaW5pdC1maWxlLXVzZXIgIi8u ZW1hY3MuZCIpKSkpKSkKIAkJCSAgKGxvYWQgb3RoZXJmaWxlIHQgdCkKIAogCQkJICA7OyBJZiB3 ZSBkaWQgbm90IGZpbmQgdGhlIHVzZXIncyBpbml0IGZpbGUsCi0tIAoxLjcuMi41Cgo= --001a1134ef2616912e0511792742--