custom-add-loads: looking for clues

Bill Wohler wohler at newt.com
Mon Jun 11 01:11:13 EDT 2007


Mike Kupfer <mike.kupfer at sun.com> wrote:

> I'm trying to understand the (XEmacs) custom-add-loads function, as well
> as the custom-load.el file that gets generated for each package as part
> of the XEmacs package build.  Can someone give me some clues or point me
> at some documentation?
> 
> The reason I ask is that with MH-E 7, the generated custom-load.el
> contains 
> 
>     (autoload 'custom-add-loads "cus-load")
>     
>     (custom-add-loads 'mh-identity '("mh-customize"))
>     (custom-add-loads 'mh-speed-faces '("mh-customize"))
>     (custom-add-loads 'mh-index-faces '("mh-customize"))
>     (custom-add-loads 'mail '("mh-customize"))
>     (custom-add-loads 'mh-alias '("mh-customize"))
>     (custom-add-loads 'mh-speed '("mh-customize"))
>     ...
> 
> The custom-load.el that gets generated for MH-E 8.0.3 just has the
> autoload--there are no calls to custom-add-loads.

That sounds broken.

>                                                    Is there some tag
> that needs to be present in the source file for the custom-add-loads
> call to be generated?
> 
> There *is* an mh-cus-load.el in the MH-E 8.0.3 tarball (i.e., from
> upstream) that has
> 
>     (put 'mh-hooks 'custom-loads '("mh-e"))
>     (put 'mh-sending-mail 'custom-loads '("mh-e"))
>     (put 'mh-sequences 'custom-loads '("mh-e"))
>     (put 'mh-junk 'custom-loads '("mh-e"))
>     (put 'mh-thread 'custom-loads '("mh-e"))
>     (put 'mh-search 'custom-loads '("mh-e"))
>     ...
> 
> but I can't tell if it's specific to GNU Emacs.  Anyone know?

Yikes, I think I tested this under both GNU Emacs (21 and 22) and XEmacs
21.4.19 (I think) but that was long ago. What version of XEmacs are you
using? If it is significantly newer, it's possible that XEmacs changed
the way that they generate custom loads and we'll have to update the
Makefile accordingly. I seem to recall that XEmacs changed the way they
did autoloads so I had already updated the Makefile for that change. The
CVS logs should reveal all ;-).

-- 
Bill Wohler <wohler at newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD



More information about the XEmacs-Beta mailing list