From: Greg Hill <ghill@synergymicro.com>
Subject: Re: Built-in Functions and Special Forms
Date: Wed, 26 Feb 2003 20:02:04 -0800 [thread overview]
Message-ID: <p04310107ba833c6582e8@[198.17.100.22]> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 521 bytes --]
>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)))
Of course that should really be:
(defun special-form-p (symbol)
(and (subrp (symbol-function symbol))
(string-match "\\.\\.\\.\\|&rest" (documentation symbol))))
--Greg
[-- Attachment #1.2: Type: text/html, Size: 1399 bytes --]
[-- Attachment #2: Type: text/plain, Size: 151 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
next reply other threads:[~2003-02-27 4:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-27 4:02 Greg Hill [this message]
[not found] <mailman.2511.1046318512.21513.help-gnu-emacs@gnu.org>
2003-02-28 18:51 ` Built-in Functions and Special Forms Artist
-- strict thread matches above, loose matches on Subject: below --
2003-02-26 20:50 Artist
2003-02-26 21:08 ` Barry Margolin
2003-02-27 0:02 ` Unknown
2003-02-27 1:38 ` Pascal Bourguignon
2003-02-27 3:42 ` Greg Hill
2003-02-27 7:31 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p04310107ba833c6582e8@[198.17.100.22]' \
--to=ghill@synergymicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).