Subject: Re: bug#57639: [PATCH] Add new command 'toggle-theme'

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 20 Sep 2022 23:11:16 +0200

Philip Kaludercic <[email-masked]> writes:

> I've just tried this out but it appears that despite re-building Emacs
> the autoloaded calls are not registered.  Is this because of some
> special handling of themes?

Oh -- the themes are in etc/themes, and I don't think they're
included...  Let's see...

Yup:

autoloads: $(lisp)/emacs-lisp/loaddefs-gen.elc gen-lisp
	$(AM_V_GEN)$(emacs) \
            -l $(lisp)/emacs-lisp/loaddefs-gen.elc \
	    -f loaddefs-generate--emacs-batch ${SUBDIRS_ALMOST}

We can add ../etc/themes there after ${SUBDIRS_ALMOST}, though.