-----Original Message-----
From: Stephen J. Turnbull [mailto:turnbullīŧ sk.tsukuba.ac.jp]
On Behalf Of Stephen J. Turnbull
Sent: Friday, January 21, 2005 1:36 AM
To: Mats Lidell
Cc: xemacs-beta(a)xemacs.org; ben(a)xemacs.org
Subject: Re: Package Smoketest and the building of mew-ja.info
>>>>> "Mats" == Mats Lidell <matsl(a)xemacs.org> writes:
Mats> "Symbol's function definition is void: regexp-opt".
This probably is due to some rearranging that Ben did;
something is weird with autoloads in regexp-opt.
Ben, what's going on here?
Mats> (eval-when-compile (require 'tex-mode) (require 'cl)
Mats> (require 'regexp-opt))
Mats> in texinfo.el.
Mats> I can't figure out from the documentation for
Mats> eval-when-compile how it is supposed to work, will
Mats> regexp-opt be loaded when a non compiled texinfo.el is
Mats> loaded or not?
No, it will not. The reason for the eval-when-compile is
that if you compile without loading regexp-opt first, there
will be unexpanded macro calls in the byte code, which will
fail (macros are supposed to be expanded before compiling).
However, you don't want to load unneeded cruft, so when
calling functions OR macros from texinfo uncompiled we depend
on autoload to make sure the library is loaded when needed.
Mats> However adding
Mats> '-l regexp-opt' (to the line in XEmacs.rules above)
Mats> makes building mew-ja.info work as expected.
Mats, does the package smoketest do an absolute build from the very
beginning? If not, you really should. Every time you build, do a `make
extraclean' (or even better, a fresh checkout). This will make it take
longer but you'll get more consistent results.
If you aren't currently doing this, nuke _pkg.el and auto-autoloads.* from
xemacs-packages/xemacs-base and rebuild. If you still get the problem, send
me the contents of _pkg.el and auto-autoloads.el.