all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Stephen Leake <stephen_leake@stephe-leake.org>
Cc: Yoni Rabkin <yoni@rabkins.net>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: development practices for ELPA packages
Date: Fri, 20 Nov 2020 10:22:48 -0500	[thread overview]
Message-ID: <jwvima02h49.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <861rgqck5r.fsf@stephe-leake.org> (Stephen Leake's message of "Wed, 18 Nov 2020 15:36:16 -0800")

>> 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>-pkg.el and <PKG>-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 <PKG>-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>-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




  parent reply	other threads:[~2020-11-20 15:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 21:47 development practices for ELPA packages Yoni Rabkin
2020-11-18 22:10 ` Stefan Monnier
2020-11-18 23:36 ` Stephen Leake
2020-11-20 15:04   ` Yoni Rabkin
2020-11-20 15:22   ` Stefan Monnier [this message]
2020-11-19  7:40 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvima02h49.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=stephen_leake@stephe-leake.org \
    --cc=yoni@rabkins.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.