Hi Ray,
Sorry about replying your last email late.
I came across this problem after a bunch of fancy ways of tracing were
added into Slime a few days ago. It will be nice to have the ability
to trace a function only when it is called inside of a particular method
but it is not important for me. Anything you do to move the behaviour
of CMUCL's TRACE closer to what's described in CMUCL User's Manual will
be great.
> Chisheng> (trace x :wherein (method call-x (babu)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If I remember correctly, this is what Slime is using for CMUCL right now.
If we allow (METHOD CALL-X (BABU)) be a "name", this should be O.K., too.
Afterall, we can do (TRACE (METHOD CALL-X (BABU))).
> The :wherein option takes a name or list of names of functions, so
> this call is really saying you want to trace when X is called from the
> functions METHOD, CALL-X or (BABU). The correct call is
>
> (trace x :wherein ((method call-x (babu))))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IMHO, this is not consistent with what's described in Section 2.23.7 of
CMUCL User's Manual but I'm not a CMUCL developer. Maybe you can move
this to the cmucl-imp list and ask what other CMUCL developers think on
this issue?
Thanks a lot for taking time to look into this.
Best wishes,
-cph