Eli Zaretskii writes: >> From: phillip.lord@russet.org.uk (Phillip Lord) >> Cc: rgm@gnu.org, 25360@debbugs.gnu.org >> Date: Tue, 10 Jan 2017 18:40:28 +0000 >> >> One error is caused when bootstrap-emacs loads CTLau.html, when it's >> running this code in leim. >> >> misc_convert = $(AM_V_GEN)${RUN_EMACS} \ >> -l titdic-cnv -f batch-miscdic-convert -dir ${leimdir}/quail >> >> ## CTLau.el, CTLau-b5.el. >> ${leimdir}/quail/CT%.el: ${srcdir}/MISC-DIC/CT%.html >> ${misc_convert} $< >> >> As far as I can tell it is happening because emacs tries to put >> CTLau.html into html-mode. AFAICT, batch-miscdic-convert uses no >> features of html-mode. > > Ok, and how does image-type-auto-detected-p enter this picture? > >> Still, I'll plug at it a little more. > > Thanks. So, the cause of the problem is this. bootstrap-emacs (nor emacs) does not actually load loaddefs.el; it's just dumped with the binary. I was recording autoloads until loaddefs.el was generated, but actually, I need to record them till loaddefs.el is used, that is when emacs is dumped. The attached patch seems to address. Can you confirm, then I will apply to master.