From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Autoloads and subdirectories
Date: Sat, 28 May 2016 00:25:09 -0400 [thread overview]
Message-ID: <57491DA5.4020002@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1240 bytes --]
Hi emacs-devel,
What is the proper way to organize the sources of a multi-file package into subdirectories, without breaking autoloads? As far as I can see `update-directory-autoloads` doesn't explore subdirectories recursively (in fact, it is documented not to), and package.el doesn't call it on subdirectories of a package's content directory. And yet, the manual says (emphasis mine):
> Do not include any file named name-autoloads.el. This file is
> reserved for the package’s autoload definitions (see Packaging
> Basics). It is created automatically when the package is installed,
> by searching *all the Lisp files* in the package for autoload magic
> comments.
This claims that all files in the package are searched (which sounds nice, but seems incorrect). Presumably this is just imprecise wording, since Packaging Basics does say the following:
> Emacs then searches every Lisp file in the content directory for
> autoload magic comments (see Autoload). These autoload definitions
> are saved to a file named name-autoloads.el in the content directory.
Which brings me back to square one: how do I move parts of a package to a subdirectory, without breaking their autoloads?
Thanks!
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next reply other threads:[~2016-05-28 4:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-28 4:25 Clément Pit--Claudel [this message]
2016-05-28 5:00 ` Autoloads and subdirectories Robert Weiner
2016-05-28 5:13 ` Clément Pit--Claudel
2016-05-28 18:18 ` Stefan Monnier
2016-05-28 18:47 ` Clément Pit--Claudel
2016-05-28 19:07 ` Stefan Monnier
2016-05-28 19:21 ` Clément Pit--Claudel
2016-05-29 15:01 ` Stefan Monnier
2016-05-29 15:39 ` Clément Pit--Claudel
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=57491DA5.4020002@gmail.com \
--to=clement.pit@gmail.com \
--cc=emacs-devel@gnu.org \
/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.