|
From: | Stefan Monnier |
Subject: | Re: get nargs for a function |
Date: | Sat, 29 Aug 2015 22:22:28 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> (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'. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |