>>>> "Mats" == Mats Lidell
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.
Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.