unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How many parameters does an elisp function take?
@ 2005-02-16 20:11 Alan Mackenzie
  2005-02-16 20:45 ` Kevin Rodgers
  2005-02-18 13:59 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Alan Mackenzie @ 2005-02-16 20:11 UTC (permalink / 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").

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-02-22 14:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).