[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get nargs for a function

From: Sam Halliday
Subject: Re: get nargs for a function
Date: Sun, 30 Aug 2015 07:14:39 -0700 (PDT)
User-agent: G2/1.0

On Sunday, 30 August 2015 03:22:46 UTC+1, Stefan Monnier  wrote:
> > (defun args (function)
> >   "The arg list of FUNCTION."
> >   (let ((kind (car function)))
> >     (if (eq kind 'closure)
> >         (cadr (cdr function))
> >       (cadr function))))
> To get the description of the arglist, you're better off using
> `help-function-arglist'.

I don't believe that works here as the input is typically anonymous.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]