From: Alan Mackenzie <acm@muc.de>
Subject: How many parameters does an elisp function take?
Date: Wed, 16 Feb 2005 20:11:53 +0000 [thread overview]
Message-ID: <9e90vc.o7.ln@acm.acm> (raw)
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.
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next reply other threads:[~2005-02-16 20:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-16 20:11 Alan Mackenzie [this message]
2005-02-16 20:45 ` How many parameters does an elisp function take? Kevin Rodgers
2005-02-16 21:02 ` David Kastrup
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=9e90vc.o7.ln@acm.acm \
--to=acm@muc.de \
/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).