From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dimitri Fontaine Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Thu, 10 Mar 2011 12:30:25 +0100 Message-ID: <878vwnnrfy.fsf@hi-media-techno.com> References: <87oc5kax8l.fsf@stupidchicken.com> <8739mwnj3v.fsf@lifelogs.com> <87oc5kjarb.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299756647 2910 80.91.229.12 (10 Mar 2011 11:30:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 11:30:47 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 12:30:43 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 1Pxe4o-0003QQ-Ix for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2011 12:30:42 +0100 Original-Received: from localhost ([127.0.0.1]:39112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxe4n-0005qM-E1 for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2011 06:30:41 -0500 Original-Received: from [140.186.70.92] (port=60915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxe4f-0005mx-2m for emacs-devel@gnu.org; Thu, 10 Mar 2011 06:30:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pxe4d-00042o-JC for emacs-devel@gnu.org; Thu, 10 Mar 2011 06:30:32 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:37155 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pxe4d-00041z-EM for emacs-devel@gnu.org; Thu, 10 Mar 2011 06:30:31 -0500 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id B86C65C0F1; Thu, 10 Mar 2011 12:30:28 +0100 (CET) Original-Received: from dim (unknown [83.167.62.196]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 3B2A25C0D7; Thu, 10 Mar 2011 12:30:26 +0100 (CET) Original-Received: by dim (Postfix, from userid 1000) id 9F4EE7A0DF; Thu, 10 Mar 2011 12:30:25 +0100 (CET) User-Mail-Address: dim@tapoueh.org In-Reply-To: <87oc5kjarb.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 09 Mar 2011 15:32:08 -0500") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.85.154.174 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:137030 Archived-At: Chong Yidong writes: > OK, I guess there's nothing wrong with adding a function to load > everything in a directory. But what's the difference between having a > variable that defaults to nil and just letting users add > > (load-directory "~/.emacs.d/my-stuff") > > to their init file? The difference is that I'm after a solution where it's possible to achieve that with *no* editing of the user-init-file. At all. So that my el-get installer will just drop a file in `user-load-dir`. The alternative is editing user-init-file to change the load-path and (require 'el-get), or to explicitly (load "path/to/el-get/el-get.el"), and that's not user friendly. Please note that my requirement would not be fulfilled at all should the load-directory be in a package. What I need is to determine from code where to place some file that will be loaded at emacs startup automatically. If the feature is not in code, that means I depend on manual actions from users before to be able to have a working solution. That would only be moving the problem, not solving it. Regards, -- dim