From: Jochen Schmidt
Subject: Re: trace-all
Date: 
Message-ID: <9uo2u2$mgi$1@rznews2.rrze.uni-erlangen.de>
Myriam Abramson wrote:

> 
> Hi!
> 
> Could somebody show me how to do a (trace-all) function or macro?
> The code below does not work I guess because trace is a macro and
> quotes its argument.
> 
> (defun trace-all (fns)
>   (dolist (fn fns)
>     (trace fn)))
> 
> Error: `FN' is not fbound
>   [condition type: UNDEFINED-FUNCTION]
> 
> TIA
> 
>                                    myriam

Trace already can get multiple functions

; Trace functions a, b and c
(trace a b c)

But if you want to trace all functions in a given list you could simply do:

(defun trace-all (fns)
  (eval `(trace ,@fns)))


ciao,
Jochen