On Thu, 28 Jun 2001, Ronan Waide wrote:
> I am contemplating some dark, devilish hacks to get around a
> particularly irritating spam-vs.-bbdb problem I'm having at the
> present. I may end up feeding it into bbdb's codebase as I think it
> might be generally useful. Anyway, before I get to this, does anyone
> on this list with a better grasp of lisp than me know if there's a way
> to query the signature of a lisp function programmatically,
> i.e. determine how many parameters it's expecting?

Er, are you sure you want to do this? I mean, *really* sure? Try posting
the problem instead, then you might get a better answer. But...

...under XEmacs you can use `function-{min,max}-args'. GNU Emacs don't
seem to make it possible that easily.

If it's not a compiled function, you can just use
`(length (nth 1 (symbol-function symbol)))', but that won't work for
compiled functions (which are more opaque) or tell you about optional
arguments.

Complied functions, I believe, are mostly vectors in Emacs lisp and you
can get into them that way...

...but it's still not the right approach.

        Daniel

-- 
Footfalls echo in the memory 
Down the passage which we did not take
Towards the door we never opened...
        -- T. S. Eliot, _Burnt Norton_

_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to