Glenn Morris writes: > npostavs@users.sourceforge.net wrote: > >> Using insert-file-contents instead of file-file-noselect seems to fix it >> for me: > > That sounds like a good change anyway. (I forget, does this respect > "coding:"? Does this even matter in this case?) I think, no, it doesn't respect coding, but that it doesn't matter. > > (But it still seems like a potential problem to me if functions that used to > be available early in the build no longer are.) It shouldn't be, if they are not being called. Anyway, the cause of the error in this case is this line in files.el. (assoc-default nil magic-fallback-mode-alist (lambda (re _dummy) (if (functionp re) (funcall re) (looking-at re))))))) This is called when loading cangjie-table.b5 with 'image-type-auto-detected-p as the first parameter. Normally, the condition returns "t", but in this case it will return f, then the looking-at form fails with the error given. I don't understand which this process does not happen during the build which generates ldefs-boot-auto.el. The bigger problem is that the bootstrap-emacs executable has different functionality compiled in, even when it does not require it to perform the task of bootstrapping. This might invalidate my approach, but I am not sure yet. The follow patch addresses, the problem at hand, though.