On Wed, 23 Jun 2004, Oleg A. Paraschenko wrote:
>
> Hello,
>
> I'm searching for a way to "partially decompile" a function. I mean,
> having a compiled function, get its source code with all macros expanded.
> Or, saying another way, apply 'macroexpand' to a compiled function.
>
> All suggestions are welcome.
(function-lambda-expression function) will return you the
s-expression for the function text, unless it returns you nil. Returning
nill from this function is always allowed.
If the result is non-nil, you can call macroexpand upon it
yourself.