]> git.cworth.org Git - notmuch/commit
emacs: Generate and install autoloads
authorPengji Zhang <me@pengjiz.com>
Sun, 18 Aug 2024 07:42:55 +0000 (15:42 +0800)
committerDavid Bremner <david@tethera.net>
Tue, 13 Jan 2026 22:52:08 +0000 (07:52 +0900)
commit0469bcd1baf94548a4157effced6fee3a2f23cc6
treef784c9bc6c8b2ae5c4c0009d649635472ea944a6
parente6e0cdff3b6ab7505666326324e7dbcb2e7714e2
emacs: Generate and install autoloads

Previously when installed with 'make install', autoloads in sources
were not scraped. So users still had to load the full library
beforehand in order to use Notmuch.

Now we generate and install such a file for 'make install-emacs'. With
this change, users can replace in their Emacs configuration:

    (require 'notmuch)

with a much cheaper:

    (require 'notmuch-autoloads)

but are still able to use 'M-x notmuch'.

Note that this new file is not included in the 'make elpa' package, so
it does not break for those users, who have already been enjoying
autoloads generated by 'package.el'.

Besides, this should not break packaging for most distros. Even if
they have generated and maintained such a file using their package
managers, Emacs does not choke on an existing output file when
scraping autoloads.

Re: thread starting at id:87o75yl4u5.fsf@pengjiz.com

Amended-By: db; add comment about autoload-excludes
emacs/.gitignore
emacs/Makefile.local
emacs/autoloads-gen.el [new file with mode: 0644]