help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

funcallable-p?


From: Drew Adams
Subject: funcallable-p?
Date: Sat, 25 Aug 2007 17:40:51 -0700

What's a good way to test the first argument to `funcall' or `apply', to
ensure that it is appropriate?

`functionp' won't do it, because it allows special forms and macros. I can
imagine doing a case analyis on the function-cell value, but what's a
concise and elegant idiom for this test? I don't see one used in the Lisp
source files; I guess each occurrence there more or less knows what argument
to expect.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]