[Top][All Lists]

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

Re: funcallable-p?

From: Stefan Monnier
Subject: Re: funcallable-p?
Date: Mon, 27 Aug 2007 00:05:25 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> > What's a good way to test the first argument to `funcall' or `apply', to
>> > ensure that it is appropriate?
>> `functionp'
>> > `functionp' won't do it, because it allows special forms and macros.
>> If it does it's a bug: please report it with a precise test case.

> That's the impression I got from 1) the doc and 2) (functionp 'and) -> t,
> (funcall 'and t) -> Invalid function: and.

> Elisp manual: "This function returns `t' if OBJECT is any kind of function,
> or a special form, or, recursively, a symbol whose function definition is a
> function or special form.  (This does not include macros.)"

Indeed you're right.  I think it's an error in functionp.
Please report it via M-x report-emacs-bug.


reply via email to

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