From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.help Subject: Re: How to specify path to .emacs.d Date: Tue, 30 Oct 2012 18:53:02 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074b1fef162ce04cd4ea5fd X-Trace: ger.gmane.org 1351637589 3565 80.91.229.3 (30 Oct 2012 22:53:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 22:53:09 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 23:53:18 2012 Return-path: Envelope-to: geh-help-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 1TTKgQ-0004kA-3c for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 23:53:18 +0100 Original-Received: from localhost ([::1]:36109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTKgH-0003BZ-OT for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 18:53:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTKgC-0003BU-3n for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 18:53:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTKgB-00086v-4f for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 18:53:04 -0400 Original-Received: from mail-qa0-f48.google.com ([209.85.216.48]:36255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTKgB-00086i-0X for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 18:53:03 -0400 Original-Received: by mail-qa0-f48.google.com with SMTP id c11so642072qad.0 for ; Tue, 30 Oct 2012 15:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5lxbHoin7pHWv62gx/aCmNUpd8S1y5Hsn7YvJPwuTIE=; b=aVjH2hvvnUH1jtbXma1C6l00mOSCKHKoGHXeEIt5Z8ZZSDCdWIzgbdYYmWoaGxHcM6 YWlS120b/TsniIMy7qL4ZI3xirR7nf3RK8ia/BOJLx24c9bFtqri/JkViOJd0OI3jpUK 5ThjbSiFrcMuoHht3wT3Ob+Q4/+JEtuxbrXLwUwEGsz+T0KEz9zAY7ythJR48tjj5fhx SAm5LR6UNY34xJZvA7qnUD9N8yU75pn6kj3Fzgprij1kCme9ZKYWJgoxLUmJoyVoIO3c MHxdymlLYU+aKBzMqmdeqOK9ihzBdba8eKgNVcs5Wp/Ly1Y3iBeVFFtU9j11kmhkqU4B zr2Q== Original-Received: by 10.224.107.3 with SMTP id z3mr14156299qao.9.1351637582045; Tue, 30 Oct 2012 15:53:02 -0700 (PDT) Original-Received: by 10.49.85.167 with HTTP; Tue, 30 Oct 2012 15:53:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.48 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87497 Archived-At: --20cf3074b1fef162ce04cd4ea5fd Content-Type: text/plain; charset=ISO-8859-1 >"Nicolas Richard" writes: > >> Barry OReilly writes: >>> Specifying a .emacs.d location as a command line flag would be a big >>> help. >> >> You could use apropos-value to list all variables which refer to >> .emacs.d and then modify those from command line using --eval (although >> sometimes that directory is hardcoded, e.g. in startup.el as a fallback >> value). In particular, user-emacs-directory is of interest, and I'd >> trying changing it, then run apropos-value to see what remains. > >`user-emacs-directory' is a defconst. I removed ~/.emacs.d, verified no ~/.emacs, executed: emacs --eval '(setq user-emacs-directory "my/path/.emacs.d/")' It did not work. More precisely, Emacs did not load my/path/.emacs.d/init.el . C-h v does show that user-emacs-directory has the /my/path/.emacs.d value, however. --20cf3074b1fef162ce04cd4ea5fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >"Nicolas Richard" <address@hidden> writes:
>
&= gt;> Barry OReilly <address@hidden> writes:
>>> Specif= ying a .emacs.d location as a command line flag would be a big
>>&= gt; help.
>>
>> You could use apropos-value to list all variables whic= h refer to
>> .emacs.d and then modify those from command line usi= ng --eval (although
>> sometimes that directory is hardcoded, e.g.= in startup.el as a fallback
>> value). In particular, user-emacs-directory is of interest, and I&= #39;d
>> trying changing it, then run apropos-value to see what re= mains.
>
>`user-emacs-directory' is a defconst.

I removed ~/.emacs.d, verified no ~/.emacs, executed:
=A0=A0 emacs --eva= l '(setq user-emacs-directory "my/path/.emacs.d/")'
It did not work.=A0 More precisely, Emacs did not load my/path/.emacs.d/i= nit.el .=A0 C-h v does show that user-emacs-directory has the /my/path/.ema= cs.d value, however.


--20cf3074b1fef162ce04cd4ea5fd--