Sean MacLennan writes:
I require packages all the time... here is an example from my
init.el
file:
There's a difference between requiring a *package* (ie, its
auto-autoloads library) and a *library* in the package. `require' is
not smart enough to load the auto-autoloads library from a package
(which is a good thing, because the base initialization code does that
for you, that's the whole point of auto-autoloads -- ensuring that
entry points of packages are known to XEmacs without you doing any
work). You will discover that there is a library named "cc-mode" in
the package named "cc-mode", which is what your init file loads by
requiring 'cc-mode.
If you want to call a function from cc-mode.el that is *not*
autoloaded, you need to require 'cc-mode. If you want to call a
cc-mode function that is not in cc-mode.el, requiring cc-mode won't
help. You need to require the cc-foo library that contains the
function you want to use.
There is also an auto-autoloads in that package, which is what is
causing the problem (see Subject header).
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta