On Wed, 10 Apr 2002, Steve Youngs mused:
I do this all the time for the stuff I keep in
'site-packages'. It's
actually quite easy.
xemacs -batch -eval \("setq autoload-package-name \"nifty-stuff\""\)
\
-f batch-update-directory ./
The key to it is the "setq autoload-package-name ..." bit.
Myself, I leave that bit out and do a one-off edit of the
auto-autoloads.el file to set the package name. The file just gets
edited by batch-update-{one-}directory anyway, so your randomly chosen
name gets preserved.
A future enhancement that I keep meaning to write is for autoload.el to
look up the cwd and see if it's in a site-packages tree, and if so to
stick an invariant `site-' on the front of the computed package name.
That way you could have a package text-modes, say, in the site-packages
tree and the autoload require name would never conflict with that in the
xemacs-packages tree.
--
`Unless they've moved it since I last checked, travelling between
England and America does not involve crossing the equator.'
--- pir