From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: development practices for ELPA packages Date: Fri, 20 Nov 2020 10:22:48 -0500 Message-ID: References: <87blfuz69q.fsf@rabkins.net> <861rgqck5r.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31764"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yoni Rabkin , emacs-devel To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 20 16:27:47 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kg8KB-0008BL-1Q for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Nov 2020 16:27:47 +0100 Original-Received: from localhost ([::1]:50780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kg8KA-0003y4-32 for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Nov 2020 10:27:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg8FY-0006Jc-9b for emacs-devel@gnu.org; Fri, 20 Nov 2020 10:23:01 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:18369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg8FU-0002Gx-Oo for emacs-devel@gnu.org; Fri, 20 Nov 2020 10:22:59 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1B77380855; Fri, 20 Nov 2020 10:22:55 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 581C9805CE; Fri, 20 Nov 2020 10:22:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1605885769; bh=UyJz1AQ3/zCKWzegUVqDCRilQocTVwxbuxX03CjeGCA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fT0105pVMWUhZSt5cuGZqYLAW7CKwhVlsrwt+38/v2Na1uyOegUJ/0TZxMetJTEcu MvSDCtMtV32q+DwaVtXCrMb2eVeuJT6R3/I1L3RP+U3wA6sHFnrfYEZ3lh9yvgRWHJ c+aiM/wsB4s3UPNdfmA1tnSTup8hTCM8xLkMYWMmK5ABEPJCvFdVL2axU5ImMwnJM6 QSS1Ap3qMULO8NfrOpQl5PZ8f5L7zwVaTWd43xA/8GnXeTYPdN+RgXLahTq+X4vPgE FJ6w7kPfpHm8+UKeaH1ymmTVeKQVuxx+SYDYpTSFGPaqtYg8/np11i49UxXM74oeqt zikHAZb5kin+g== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 230BF120341; Fri, 20 Nov 2020 10:22:49 -0500 (EST) In-Reply-To: <861rgqck5r.fsf@stephe-leake.org> (Stephen Leake's message of "Wed, 18 Nov 2020 15:36:16 -0800") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259493 Archived-At: >> Right now I'm working on the next release of rt-liberation. I would like >> to tell Emacs: "load all of the ELPA packages normally, but when you get >> to rt-liberation please load my local, non-packaged, version from >> /devel/rt-liberation" > Stefan's suggestion works if your devel directory looks like an > installed package. ada-mode doesn't; Making it look like an installed package is easy: it just requires a -pkg.el and -autoloads.el file. elpa.git has code to create&refresh those files. It's not currently very convenient to use that code in a specific directory, but that would be easy to fix. The creation of -autoloads.el is done by the following rule in the GNUmakefile: %-autoloads.el: @#echo 'Generating autoloads for $@' @cd $(dir $@) && \ $(EMACS) -l $(CURDIR)/admin/archive-contents.el \ --eval "(require 'package)" \ --eval "(load (expand-file-name \"../names/names-autoloads.el\") t t)" \ --eval "(package-generate-autoloads \"$$(basename $$(pwd))\" \ \"$$(pwd)\")" and the rule for -pkg.el is: %-pkg.el: %.el @echo 'Generating description file $@' @$(EMACS) \ --eval '(require (quote package))' \ --eval '(setq b (find-file-noselect "$<"))' \ --eval '(setq d (with-current-buffer b (package-buffer-info)))' \ --eval '(package-generate-description-file d "$@")' -- Stefan