Startup file generation is poorly documented. A problem arises because you did not set the generated-autoload-file variable. Try the following:
(let ((generated-autoload-file "~/test/loaddefs.el")) (update-directory-autoloads "~/test"))
Update the generated-autoloads-file binding to be the place where you want loaddefs.el work.
Trey jackson
source share