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 18:23:12 +0100 Message-ID: References: <87oc5kax8l.fsf@stupidchicken.com> <8739mwnj3v.fsf@lifelogs.com> <87oc5kjarb.fsf@stupidchicken.com> <878vwnnrfy.fsf@hi-media-techno.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299777818 771 80.91.229.12 (10 Mar 2011 17:23:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 17:23:38 +0000 (UTC) Cc: Chong Yidong , Ted Zlatanov , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 18:23:34 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 1PxjaH-0002T6-Sb for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2011 18:23:34 +0100 Original-Received: from localhost ([127.0.0.1]:41134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxjaG-0000cr-HG for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2011 12:23:32 -0500 Original-Received: from [140.186.70.92] (port=55746 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxja8-0000ao-6l for emacs-devel@gnu.org; Thu, 10 Mar 2011 12:23:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pxja3-0008GM-HW for emacs-devel@gnu.org; Thu, 10 Mar 2011 12:23:20 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:51446 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pxja3-0008Fp-Ci for emacs-devel@gnu.org; Thu, 10 Mar 2011 12:23:19 -0500 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 050595C105; Thu, 10 Mar 2011 18:23:17 +0100 (CET) Original-Received: from DimIMac.local (89-159-58-5.rev.dartybox.com [89.159.58.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 1C6655C0FC; Thu, 10 Mar 2011 18:23:15 +0100 (CET) Original-Received: by DimIMac.local (Postfix, from userid 501) id E352F1B4EF8F; Thu, 10 Mar 2011 18:23:12 +0100 (CET) User-Mail-Address: dim@tapoueh.org In-Reply-To: (Tom Tromey's message of "Thu, 10 Mar 2011 07:27:29 -0700") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (darwin) 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:137042 Archived-At: Tom Tromey writes: > Your use case is completely solved by package.el. First, package el-get > as a package (trivial). Second, have an autoload cookie in el-get that > loads the code from some directory. > > Why do you think you need anything more? I'm thinking I need much less than all that. Then I've been trying to follow your advice and turn el-get into a proper Emacs package, as that's easy enough, right? Turns out not to be. Given the following (or some variations, all based upon reading (info "(elisp) Packaging Basics") and (info "(elisp) Library Headers"), then the describe-function of `version-to-list' and helpers): ;; Version: 1.2~dev ;; Package-Version: 1.2+alpha1 All I get from `package-install-from-buffer' is: Package does not define a usable "Version" or "Package-Version" header. It seem to me that the function `package-strip-rcs-id' is buggy from failing to use `version-to-list' and instead invents its own regexp to match the version identifier, then returns nil which gets into an error. I'm still thinking that a simple directory where to put files to be loaded would be a good feature, independently of how I will fix the el-get-installer automatic bootstrap. Regards, -- dim