unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: funcallable-p?
Date: Mon, 27 Aug 2007 12:16:01 +0200	[thread overview]
Message-ID: <87ejhp471a.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 87mywe8iz7.fsf@orme.bigwalter.net

daniel@bigwalter.net (Daniel Jensen) writes:

> Pascal Bourguignon <pjb@informatimago.com> writes:
>
>> daniel@bigwalter.net (Daniel Jensen) writes:
>>
>>> You can use `subr-arity' to test for a special form.
>>
>> (subrp (symbol-function 'sin)) --> t
>
> What are you trying to say here?
>
> (subr-arity (symbol-function 'sin))
> => (1 . 1)
>
> (subr-arity (symbol-function 'and))
> => (0 . unevalled)

Sorry, I didn't know subr-arity, and I "read" that we could test for a
subr.


subr-arity sounds nice.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Litter box not here.
You must have moved it again.
I'll poop in the sink. 

  reply	other threads:[~2007-08-27 10:16 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   ` funcallable-p? Pascal Bourguignon
2007-08-26 14:32     ` funcallable-p? Daniel Jensen
2007-08-27 10:16       ` Pascal Bourguignon [this message]
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=87ejhp471a.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).