From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Testing forthe existence of a function Date: Tue, 27 Oct 2009 09:44:59 -0700 Message-ID: <1B207138EE374CCF8C4F9DEDDBE668CD@us.oracle.com> References: <26077455.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1256662095 22569 80.91.229.12 (27 Oct 2009 16:48:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2009 16:48:15 +0000 (UTC) To: "'grkuntzmd'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 27 17:48:08 2009 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 1N2pDC-0007Dx-B8 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 17:47:58 +0100 Original-Received: from localhost ([127.0.0.1]:38296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2pDB-0003me-UM for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 12:47:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2pBa-00036e-AJ for help-gnu-emacs@gnu.org; Tue, 27 Oct 2009 12:46:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2pBV-00034V-B5 for Help-gnu-emacs@gnu.org; Tue, 27 Oct 2009 12:46:17 -0400 Original-Received: from [199.232.76.173] (port=35628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2pBV-00034J-5D for Help-gnu-emacs@gnu.org; Tue, 27 Oct 2009 12:46:13 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:36519) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2pBU-0003lN-Mj for Help-gnu-emacs@gnu.org; Tue, 27 Oct 2009 12:46:12 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9RGkfvM003918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Oct 2009 16:46:42 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9RGk6Ws014728; Tue, 27 Oct 2009 16:46:08 GMT Original-Received: from abhmt020.oracle.com by acsmt356.oracle.com with ESMTP id 20651408581256661907; Tue, 27 Oct 2009 09:45:07 -0700 Original-Received: from dradamslap1 (/24.5.184.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 27 Oct 2009 09:45:06 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpXIl6IrlPjMc2lSoyL7p4UXBZizwAAUs4w In-Reply-To: <26077455.post@talk.nabble.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4AE723CF.005D:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 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:69281 Archived-At: Function `fboundp' is what you're looking for. -- Be aware that `fboundp' checks only whether its argument is defined, in the sense of having something in its function cell. This does not necessarily mean that the arg is a Lisp function - it could be also a macro or special form. If you need to test whether the thing in question is in fact a function, use `functionp'.