From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: get nargs for a function Date: Sun, 30 Aug 2015 07:14:39 -0700 (PDT) Message-ID: <49c169db-e136-4ab6-ae93-2f7d08218cc1@googlegroups.com> References: <9eb51198-614a-49f7-8085-2a068dd28852@googlegroups.com> <3b735611-f4c0-419d-9938-ab5dc45c0405@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1440944123 9368 80.91.229.3 (30 Aug 2015 14:15:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2015 14:15:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 30 16:15:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZW3OB-0002s3-G6 for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Aug 2015 16:15:19 +0200 Original-Received: from localhost ([::1]:58764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW3OC-00052g-Ir for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Aug 2015 10:15:20 -0400 X-Received: by 10.129.78.85 with SMTP id c82mr22618669ywb.9.1440944080514; Sun, 30 Aug 2015 07:14:40 -0700 (PDT) X-Received: by 10.50.138.70 with SMTP id qo6mr167622igb.5.1440944080485; Sun, 30 Aug 2015 07:14:40 -0700 (PDT) Original-Path: usenet.stanford.edu!b6no75578qge.0!news-out.google.com!nt1ni19344igb.0!nntp.google.com!uu8no237671igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.241.69.172; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 89.241.69.172 User-Agent: G2/1.0 Injection-Date: Sun, 30 Aug 2015 14:14:40 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:214648 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106932 Archived-At: 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.