From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Mon, 07 Mar 2011 11:59:46 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ipvu24ml.fsf@lifelogs.com> References: <87ei6mz24h.fsf@lifelogs.com> <20110306072147.GA11067@event-horizon.homenet> <871v2i525h.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299521121 2810 80.91.229.12 (7 Mar 2011 18:05:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 18:05:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 07 19:05:17 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 1Pwenx-0007de-Vn for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2011 19:05:14 +0100 Original-Received: from localhost ([127.0.0.1]:51919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwenx-0001tJ-Bu for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2011 13:05:13 -0500 Original-Received: from [140.186.70.92] (port=54718 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwent-0001rv-AG for emacs-devel@gnu.org; Mon, 07 Mar 2011 13:05:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwens-00047I-5F for emacs-devel@gnu.org; Mon, 07 Mar 2011 13:05:09 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:35038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwenr-00046r-N8 for emacs-devel@gnu.org; Mon, 07 Mar 2011 13:05:08 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pwenp-0007Xl-CK for emacs-devel@gnu.org; Mon, 07 Mar 2011 19:05:05 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2011 19:05:05 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2011 19:05:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:dEMVpLm26rhQJ6gtbrCYEGGIZlA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:136842 Archived-At: On Mon, 7 Mar 2011 09:18:44 -0800 Chad Brown wrote: CB> On Mar 7, 2011, at 8:24 AM, Ted Zlatanov wrote: >> Bazaar has a plugins directory; files in it are automatically activated, >> as an example of a user-level facility like this. Anyhow, my point is >> that placing a file in a directory is inherently more modular and >> convenient to the user than augmenting a single file. Do you disagree? CB> My point is that the user must take an explicit step to do either, and CB> that placing a file in a magic directory and then answering questions CB> about it (both steps are required) is significantly less convenient CB> and equally or less modular than running an installer command. CB> So, yes, I do disagree. What you call `augmenting a single file' can CB> be done with a simple, user-fiendly lisp command. The simple CB> combination of el-get and package.el is much of the way there today. Again you're talking about package installation. I want to create $LOAD_DIR/000-keys.el and have it loaded on startup. I don't want it installed, managed, or wrapped. This mechanism will facilitate bootstrapping el-get, for instance, but it will also enable users to manage their configurations better. CB> I think that you're conflating package.el with the (still developing) CB> policy concerning the management of the `official' central archive for CB> it once it's included by default. You say that you want something that CB> `should work like package.el', but I don't see where you say what your CB> problem with package.el is except to imply that you think some sort of CB> overhead will be too high. I was talking about the mechanics as far as Matt's questions: how it behaves on --batch, etc. I was not suggesting it should do what package.el does in terms of functionality. I don't have a problem with package.el. I just don't want to have to create a package in order to have a modular snippet as I described above. Why can't the two coexist? CB> I honestly doubt that there is a lot more effort required to create CB> something that works with package.el than there is to make a snippet CB> that works automatically with just a simple mechanical checksum CB> test. Put another way: I doubt that the overhead is likely to be too CB> high for anyone who's actually creating something that wants to be CB> shared automatically. Put another another way, I think that the CB> snippet of code that can't be a package or in site-lisp but that CB> several users want to share and use automatically is really unlikely CB> to exist. Who said anything about sharing? I want to break down my .emacs for example; why can't I do it by putting 8 files in a directory instead of writing (load...) 8 times in my .emacs? Here's that portion of my current .emacs: (load "tzz.emacs.start.el") (load "tzz.emacs.functions.el") (load "tzz.emacs.libraries.el") (load "tzz.emacs.colors.el") (load "tzz.emacs.options.el") (load "tzz.emacs.keys.el") (load "tzz.emacs.custom.el") (load "tzz.emacs.skeletons.el") I want, instead, to customize load-dir to ~/emacs.d/conf.d and put those 8 files in it. Ted