>>> "AE" == Arash Esbati writes: > Uwe Brauer writes: >> Now the problem is that we want to cater for users with different Emacs >> versions 30,29,28, 27 and maybe even 26. >> >> In the case of lisp file, I know how to deal with such a situation, but >> for a Makefile? > This is what AUCTeX does in a Makefile to deal with this: > AUTOLOAD=--eval '\ > (let* ((autoload-file (expand-file-name "$@")) \ > (autoload-file-dir (file-name-directory autoload-file))) \ > (if (fboundp (quote loaddefs-generate)) \ > (loaddefs-generate autoload-file-dir autoload-file) \ > (setq generated-autoload-file autoload-file) \ > (update-directory-autoloads autoload-file-dir)) \ > (save-buffers-kill-emacs t)' > auctex-autoloads.el: > $(EMACS) $(AUTOLOAD) > HTH. Best, Arash Ah thanks so much that is indeed helpful! -- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.