From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: Arguments at runtime (reflection)? Date: Tue, 31 May 2011 08:06:16 -0700 Message-ID: References: <3C5C8D2086E543718025E0A544190CEE@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1306854397 30126 80.91.229.12 (31 May 2011 15:06:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 15:06:37 +0000 (UTC) Cc: help-gnu-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 31 17:06:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRQWd-00057N-Lv for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2011 17:06:31 +0200 Original-Received: from localhost ([::1]:35548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQWd-0007H2-6G for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2011 11:06:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQWU-0007Gm-61 for Help-gnu-emacs@gnu.org; Tue, 31 May 2011 11:06:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRQWQ-0002py-6c for Help-gnu-emacs@gnu.org; Tue, 31 May 2011 11:06:22 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:61381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQWP-0002pi-W2 for Help-gnu-emacs@gnu.org; Tue, 31 May 2011 11:06:18 -0400 Original-Received: by fxm18 with SMTP id 18so3791541fxm.0 for ; Tue, 31 May 2011 08:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xIuA8k5hW2c5wfT44jSYvowL6MHsMFurIZ9yW5uiUeg=; b=IjtDQl07/Ioz4LjGkK5jJ7fm+axkBet2deXTVeqj4/3wuM6Y9O8n9m5upNbNxSFS1u pVeT/sjb3YNX6M4MzFgwjJH3wySsZwTzHx9EXHBZMI3iN2DibvUxCBygyqpoOoHgER4H F9LA9j2Y7mrUvzGbvv1LDTy4CZjp+PlRZzVMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mTeoJMnjxMjJfLBY6YYt9xMjXkBHJWHyjxdHTOtc0ZMe3bcXUIJBXULYIXen0RDQ0q +lhns3FhxUEBCNC7BHRsw1fQXttu1Z0waLBboCoGbBh1A/eLFF/FbjK3gIaxAHZ7tu8L 8yU5S8ydyBAcHfftnzMSX/XVhDTDg/2ooY6zY= Original-Received: by 10.223.53.84 with SMTP id l20mr1830765fag.48.1306854376519; Tue, 31 May 2011 08:06:16 -0700 (PDT) Original-Received: by 10.223.93.208 with HTTP; Tue, 31 May 2011 08:06:16 -0700 (PDT) In-Reply-To: <3C5C8D2086E543718025E0A544190CEE@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:81267 Archived-At: On Saturday, May 28, 2011, Drew Adams wrote: >> Is there a way to determine a function's argument list (or at least >> the number of arguments it accepts) at runtime? > > See `sub-arity' and `help-function-arglist' (its code). Thanks! I kinda wish there was one function that gave the info for C functions and Lisp functions, but I can piece together what I need to know from there. :-)