[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How many parameters does an elisp function take?
From: |
David Kastrup |
Subject: |
Re: How many parameters does an elisp function take? |
Date: |
Wed, 16 Feb 2005 22:02:21 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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