Stefan Monnier <monn...@iro.umontreal.ca> writes: > That works as well, indeed. There are many ways to skin this cat. 🙂
Meow! 🙀 > Ah, OK. Not sure why you find it ugly, but there's no accounting > for taste. I find it a bit unnatural to load a file containing the autoloads by hand. But maybe I have to change my mental model on that. > I think the patch below does that. > > > diff --git a/GNUmakefile b/GNUmakefile > index b5cec4822e..fbf653ab09 100644 > --- a/GNUmakefile > +++ b/GNUmakefile > @@ -17,7 +17,8 @@ > # latex: prtightpage.def > # latex: prtracingall.def > > autoloads: > - $(EMACS) -f loaddefs-generate-batch loaddefs.el . > + $(EMACS) --eval \ > + "(loaddefs-generate \".\" \"auctex-autoloads.el\" \ > + nil \"(add-to-list 'load-path \ > + (directory-file-name \ > + (file-name-directory load-file-name)))\")" Thanks, it works. The only issue we have to solve next is how to cater for Emacs<29 which don't have `loaddefs-generate' (we have a solution for that in the old Makefile; we have to check if have to reactivate that part.) Best, Arash