unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Help-Gnu-Emacs" <help-gnu-emacs@gnu.org>
Subject: funcallable-p?
Date: Sat, 25 Aug 2007 17:40:51 -0700	[thread overview]
Message-ID: <DHEEKFAFJEFOJHLCFPFDEEIKCAAA.drew.adams@oracle.com> (raw)

What's a good way to test the first argument to `funcall' or `apply', to
ensure that it is appropriate?

`functionp' won't do it, because it allows special forms and macros. I can
imagine doing a case analyis on the function-cell value, but what's a
concise and elegant idiom for this test? I don't see one used in the Lisp
source files; I guess each occurrence there more or less knows what argument
to expect.

             reply	other threads:[~2007-08-26  0:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-26  0:40 Drew Adams [this message]
     [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
     [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       ` 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

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=DHEEKFAFJEFOJHLCFPFDEEIKCAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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).