From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: user-controlled load-path extension: load-dir Date: Wed, 09 Mar 2011 14:57:17 -0500 Message-ID: <877hc8t6ci.fsf@stupidchicken.com> References: <87ei6mz24h.fsf@lifelogs.com> <20110306072147.GA11067@event-horizon.homenet> <871v2i525h.fsf@lifelogs.com> <87oc5lx607.fsf@lifelogs.com> <87hbbd5yb7.fsf@stupidchicken.com> <874o7dtpow.fsf@lifelogs.com> <871v2hh0wx.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299700650 29587 80.91.229.12 (9 Mar 2011 19:57:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2011 19:57:30 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 09 20:57:25 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 1PxPVd-0001ur-9g for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2011 20:57:25 +0100 Original-Received: from localhost ([127.0.0.1]:53645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxPVc-0002tE-SQ for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2011 14:57:24 -0500 Original-Received: from [140.186.70.92] (port=49565 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxPVY-0002sz-BI for emacs-devel@gnu.org; Wed, 09 Mar 2011 14:57:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxPVW-0001W3-Ss for emacs-devel@gnu.org; Wed, 09 Mar 2011 14:57:20 -0500 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]:36785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxPVW-0001Vy-Qw for emacs-devel@gnu.org; Wed, 09 Mar 2011 14:57:18 -0500 Original-Received: from furball (dhcp128036014010.central.yale.edu [128.36.14.10]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p29JvHDO021391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 9 Mar 2011 14:57:17 -0500 Original-Received: by furball (Postfix, from userid 1000) id BD426160606; Wed, 9 Mar 2011 14:57:17 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Tue, 08 Mar 2011 21:54:53 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.145 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:136985 Archived-At: Stefan Monnier writes: >> Hum, I'd like to have that defcustom (or another one) to have a >> directory where Emacs would not stupidly load the file, but build an >> autoload file for them and load that one. > > That would make more sense, indeed. That's also closer to what > package.el (w|sh)ould do with random .el files. If said random .el file follows the Emacs Lisp file conventions, and has a `;; Version: XX.XX.XX' line in its header section, it's already a valid package. M-x package-install-file will do the right thing.