unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: How many parameters does an elisp function take?
Date: Wed, 16 Feb 2005 22:02:21 +0100	[thread overview]
Message-ID: <x5vf8s43s2.fsf@lola.goethe.zz> (raw)
In-Reply-To: 37hpndF5cn882U1@individual.net

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> Alan Mackenzie wrote:
>> Is it possible to determine at run time how many parameters an elisp
>> function takes?  For example, I'd like to write something like:
>> (how-many-params 'null)
>> and have it evaluate to 1.  Or something like that.  Together with
>> some
>> reasonable convention for indicating &optional and &rest arguments.
>
> I would start with eldoc-function-arglist.

For built-in functions, subr-arity might help.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2005-02-16 21:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 20:11 How many parameters does an elisp function take? Alan Mackenzie
2005-02-16 20:45 ` Kevin Rodgers
2005-02-16 21:02   ` David Kastrup [this message]
2005-02-16 23:56     ` Kevin Rodgers
2005-02-18 13:59 ` Stefan Monnier
2005-02-18 17:43   ` Alan Mackenzie
2005-02-22 14:41     ` Stefan Monnier

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=x5vf8s43s2.fsf@lola.goethe.zz \
    --to=dak@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).