On Fri, 18 Jan 2002, Vaclav Barta muttered drunkenly:
Steve Youngs wrote:
> VB> 1) the package would be ready to run even without the .elc
> True for most packages, but not all. And don't forget about the
> 'auto-autoloads.el[c]' and 'custom-load.el[c]' that get created
> when I build the packages.
Er, what *is* auto-autoloads? Sounds worryingly meta-level... :-)
It's an automatically generated file that contains autoload definitions
for every file in a directory, automatically generated for every
definition in that directory's Lisp files that is preceded by the magic
cookie
;;;###autoload
XEmacs iterates across all the directories under the packages and
site-packages lisp directories and loads the auto-autoloads files it
finds there.
This is far preferable to the old method (inherited from GNU Emacs) of
having a single great big file containing all the autoloads for every
package dumped into Emacs (generated from magic cookies in the Lisp
source in the same way as now) --- that meant that to add an autoload
transparently (in the same way as the core Emacs autoloads) you had to
redump Emacs.
You can regenerate this file (for your site-lisp trees, say) via
xemacs -vanilla -batch -f autoload -l batch-update-directory {directory name}
There's also an automatically generated `custom-load' file, which
contains defgroup entries for every customization group in that
directory; you regenerate that via
xemacs -vanilla -batch -f cus-dep -l Custom-make-dependencies {directory name}
and then you probably want to re-byte-compile them:
xemacs -vanilla -batch -f bytecomp -l batch-byte-recompile-directory {directory name}
--- question; shouldn't we provide shell scripts that do this for people
automatically? (I'd be happy to contribute mine, ugly though they are.)
(XEmacs-21.1 *had* some shell scripts to do this, actually, although
they weren't installed, but they'd disappeared by 21.4 days.)
> You can of course build the packages yourself (plenty of people
> do). Just grab the "packages" module out of CVS.
What I want is to minimize downloads (the rest of the world may
have moved on, but I still pay for my phone connection by
the minute)... Say I want the latest version of prog-modes;
how do I get it (and nothing else) from xemacs CVS?
There's a CVS module called `prog-modes-1_49' (and similarly for all the
others) --- but I don't know if you can build just that module without
the top level directory (which has the make rules in it and so forth)
--- and I'm not sure if you can get the top level directory without
getting all the packages at the same time. (Steve?)
--
`I personally would not stand in a river waving a graphite rod above my
head during a thunderstorm.' --- Harry Jackson