From: Pascal Bourguignon <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: funcallable-p?
Date: Sun, 26 Aug 2007 15:08:31 +0200 [thread overview]
Message-ID: <873ay6wii8.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 87sl668t48.fsf@orme.bigwalter.net
daniel@bigwalter.net (Daniel Jensen) writes:
> "Drew Adams" <drew.adams@oracle.com> writes:
>
>> I mispoke about macros. I really meant special forms. `functionp' doesn't
>> distinguish between functions and special forms, right? If so, is there an
>> idiom or convention for such a test, of shall I just test `functionp' and
>> not a member of the list of special forms?
>
> You can use `subr-arity' to test for a special form.
(subrp (symbol-function 'sin)) --> t
--
__Pascal Bourguignon__ http://www.informatimago.com/
This is a signature virus. Add me to your signature and help me to live.
next prev parent reply other threads:[~2007-08-26 13:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5340.1188108088.32220.help-gnu-emacs@gnu.org>
2007-08-26 10:53 ` funcallable-p? Daniel Jensen
2007-08-26 13:08 ` Pascal Bourguignon [this message]
2007-08-26 14:32 ` funcallable-p? Daniel Jensen
2007-08-27 10:16 ` funcallable-p? Pascal Bourguignon
2007-08-26 14:43 ` funcallable-p? Drew Adams
2007-08-26 22:44 ` funcallable-p? Johan Bockgård
2007-08-27 0:03 ` funcallable-p? Drew Adams
2007-08-27 3:20 ` funcallable-p? Eli Zaretskii
[not found] ` <mailman.5381.1188184866.32220.help-gnu-emacs@gnu.org>
2007-08-27 18:04 ` funcallable-p? Johan Bockgård
[not found] <mailman.5334.1188088931.32220.help-gnu-emacs@gnu.org>
2007-08-26 5:07 ` funcallable-p? Stefan Monnier
2007-08-26 6:01 ` funcallable-p? Drew Adams
2007-08-27 4:05 ` funcallable-p? Stefan Monnier
2007-08-27 5:11 ` funcallable-p? Drew Adams
2007-08-27 13:55 ` funcallable-p? Stefan Monnier
2007-08-27 14:41 ` funcallable-p? Drew Adams
2007-08-27 20:08 ` funcallable-p? Stefan Monnier
2007-08-26 0:40 funcallable-p? Drew Adams
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=873ay6wii8.fsf@thalassa.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/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).