From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: Built-in Functions and Special Forms Date: Wed, 26 Feb 2003 19:42:51 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8765r6cxk0.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1046317583 9864 80.91.224.249 (27 Feb 2003 03:46:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 03:46:23 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oF02-0002Yv-00 for ; Thu, 27 Feb 2003 04:46:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oEwI-0001rb-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 26 Feb 2003 22:42:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oEw1-0001mb-00 for help-gnu-emacs@gnu.org; Wed, 26 Feb 2003 22:42:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oEvz-0001jK-00 for help-gnu-emacs@gnu.org; Wed, 26 Feb 2003 22:42:12 -0500 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oEvz-0001ge-00 for help-gnu-emacs@gnu.org; Wed, 26 Feb 2003 22:42:11 -0500 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id TAA04234 for ; Wed, 26 Feb 2003 19:42:57 -0800 Original-Received: from [198.17.100.22] (G-Hill-Mac [198.17.100.22])TAA03397 for ; Wed, 26 Feb 2003 19:48:32 -0800 In-Reply-To: <8765r6cxk0.fsf@thalassa.informatimago.com> Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7172 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7172 At 2:38 AM +0100 2/27/03, Pascal Bourguignon wrote: >I've not found any predicate to distinguish between built-in functions >and special forms. In Emacs-21, the documentation is consistent enough that this seems to always work. (defun special-form-p (symbol) (string-match "\\.\\.\\.\\|&rest" (documentation symbol))) --Greg