From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: funcallable-p? Date: Mon, 27 Aug 2007 00:05:25 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188187559 18405 80.91.229.12 (27 Aug 2007 04:05:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 04:05:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 06:05:55 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPVrE-000054-1G for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2007 06:05:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPVrD-0004uS-EF for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2007 00:05:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPVr0-0004uN-JF for help-gnu-emacs@gnu.org; Mon, 27 Aug 2007 00:05:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPVqz-0004uB-25 for help-gnu-emacs@gnu.org; Mon, 27 Aug 2007 00:05:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPVqy-0004u8-VQ for help-gnu-emacs@gnu.org; Mon, 27 Aug 2007 00:05:29 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IPVqy-0008Pi-Fp for help-gnu-emacs@gnu.org; Mon, 27 Aug 2007 00:05:28 -0400 Original-Received: from pastel.home ([70.55.146.55]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070827040526.UHJH1592.tomts5-srv.bellnexxia.net@pastel.home> for ; Mon, 27 Aug 2007 00:05:26 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DF8037F7C; Mon, 27 Aug 2007 00:05:25 -0400 (EDT) In-Reply-To: (Drew Adams's message of "Sat\, 25 Aug 2007 23\:01\:32 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46881 Archived-At: >> > 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. Stefan