Subject: Re: more autoload verbosity please

From: Jan Wielemaker <[email-masked]>
Date: Thu, 20 Jan 2000 14:36:38 +0100

On Wed, 19 Jan 2000, Paul Singleton wrote:
>I need to know which undefined predicate is causing a library
>to be autoloaded: I've enabled verbose_autoload, but that just
>tells me the pathname of the loaded file and its module.
>
>This is only a temporary requirement, so any workaround will
>be welcome.

It is more or less a temporary hack, but the following does your
job:

exception(undefined_predicate, Pred, _) :-
        format('Trapping undefined for ~w~n', [Pred]),
        fail.

You can mess around with the database defined in boot/autoload.pl
to print more info on what file it will autoload to for this
missing predicate.

	Regards --- Jan