Open rprimus opened 5 years ago
Wed Jun 26 09:21:48 BST 2019
Hi. For the above packages, package.el
is not generating a <package>-autoloads.el
.
Their git versions are being installed and thus being compiled.
In each of the above packages, there is only one autoload cookie for file <package>/<package>.el
.
It is of the form:
;;; Automatically add ourselves to `sly-contribs' when this file is loaded
;;;###autoload
(add-to-list 'sly-contribs '<package> 'append)
Have been trying to read autoload.el
to see why a local <package>-autoloads.el
is not being generated when update-directory-autoloads
is run.
Wed Jun 26 16:30:42 BST 2019
Think I’ve figured it out.
repo provided sly-macrostep-autoloads.el
package-generate-autoloads sly-macrostep-autoloads.el
The generated one has all that is needed to support emacs-quickstart
:
no-byte-compile
directive:exclude
package-autoloads.el from the MELPA recipeThe reason I saw no changes on my system: at some time in the past, I removed sly-autoloads.el
and re-generated it.
@drot got me thinking when he mentioned your change had solved his issue
Wed Jun 26 17:42:50 BST 2019
@luismbo has mentioned the use case of installing via git - hence requiring package-autoloads.el.
This would remvove Solution 2
. My suggestion would then be to generate the autoloads file via package-generate-autoloads
- to ensure both use cases are using the same autoloads file.
@rprimus thanks for all the investigation.
I don't change these repositories very often, and frankly I didn't generate the autoloads at all. Well, actually only once, they were all inherited from https://github.com/joaotavora/sly-hello-world
Frankly, I'm OK with both solutions, 1 (:exclude
) or 3 (re-generate the autoloads for all these packages). One important place to do this would be sly-hello-world
, so that new authors don't copy the mistake over to their new contribs.
Fri May 17 11:57:25 BST 2019
Hi.
Just noticed that the only packages with a compiled
*-autoloads.elc
:The above packages are the only ones to provide a
package-autoloads.el
.Q: Are these still required or can emacs auto-generate the appropriate autoloads file?
Background info:
It may be worth looking at: https://github.com/slime/slime/pull/512 - info in this comment.
The above commit and https://github.com/slime/slime/commit/f34e8ec18c7435e14748ad7bb94f4e47d216f204
complete the preparations for
Emacs-27
(with a package provided autoloads file).