From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Wed, 9 Mar 2011 10:00:05 -0600 Message-ID: References: <4D772C54.70006@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555903eb0c573049e0ed39b X-Trace: dough.gmane.org 1299686447 7022 80.91.229.12 (9 Mar 2011 16:00:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2011 16:00:47 +0000 (UTC) Cc: tzz@lifelogs.com, ego111@gmail.com, Emacs-devel@gnu.org To: "Jan D." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 09 17:00:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxLoY-00079W-DP for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2011 17:00:42 +0100 Original-Received: from localhost ([127.0.0.1]:39931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxLoX-0002CP-Kq for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2011 11:00:41 -0500 Original-Received: from [140.186.70.92] (port=52613 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxLoL-00026u-5T for Emacs-devel@gnu.org; Wed, 09 Mar 2011 11:00:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxLoJ-0003Um-8s for Emacs-devel@gnu.org; Wed, 09 Mar 2011 11:00:29 -0500 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:35060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxLoI-0003UG-W6 for Emacs-devel@gnu.org; Wed, 09 Mar 2011 11:00:27 -0500 Original-Received: by bwz17 with SMTP id 17so919849bwz.0 for ; Wed, 09 Mar 2011 08:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=9fzi/iBZ6sDEBeFp5vintUjwp6PH/y/JUMBQx3mj7Yw=; b=lSCXtASW1bcdbP2Ft83a3re4qRbi9Bg4RgK0L2iDs/MAqG3wPGYKIffVppSQQHIf6J wXH09IqjvxBIjND/XwqstRH4rAcoxlGe/2gEQfgCt2Ryjvl3m+RJoEjE5FPfd8lcAryw YDru8x8wuriHbiTvPxPhzMyb9sOPP0jMdd3oI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=eWE3EZzvvNXkqN3YGnMQoOkmsDPge9EHCALu57woVk5XnmO05iZzcEll0TpWZ2Lb/J MWARFJ8xbRtWvK6EZGn4G15k/fYjum/FF6pBpejiFXj6dbIJZZ1z0yDZRQUl7urkoTLg M4fmwoJEtuRlMCjShqI2Ah76S70oYZQIpngj8= Original-Received: by 10.204.20.74 with SMTP id e10mr5810384bkb.148.1299686425149; Wed, 09 Mar 2011 08:00:25 -0800 (PST) Original-Received: by 10.204.14.147 with HTTP; Wed, 9 Mar 2011 08:00:05 -0800 (PST) In-Reply-To: <4D772C54.70006@swipnet.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136971 Archived-At: --00032555903eb0c573049e0ed39b Content-Type: text/plain; charset=ISO-8859-1 On Wed, Mar 9, 2011 at 1:29 AM, Jan D. wrote: > What is wrong with (expand-file-name "~/emacs.d/load.d")? > I don't think user-init-file can be nil either. As I said in my comments for the user-load-dir defcustom, "If this file is loaded from site-start.el, `user-init-file' will be nil." Apparently site-start.el is loaded before the code in lread.c that initializes the Vuser_init_file variable. I was surprised myself when I made the change to load user-load-dir.el from my site-start.el and I got an error on the defcustom line. As for expanding "~/emacs.d/load.d," it may have the same problem with being called from site-start.el. If it does not, I will use it. --00032555903eb0c573049e0ed39b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Mar 9, 2011 at 1:29 AM, Jan D. <jan.h.d@swipnet.se> wrote:

> What i= s wrong with (expand-file-name "~/emacs.d/load.d")?
> I do= n't think user-init-file can be nil either.

As I said in my comments for the user-load-dir defcustom, "If this= file is loaded from site-start.el, `user-init-file' will be nil."= =A0 Apparently site-start.el is loaded before the code in lread.c that init= ializes the Vuser_init_file variable.=A0 I was surprised myself when I made= the change to load user-load-dir.el from my site-start.el and I got an err= or on the defcustom line.

As for expanding "~/emacs.d/load.d," it may have the same pro= blem with being called from site-start.el.=A0 If it does not, I will use it= .

--00032555903eb0c573049e0ed39b--