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: get nargs for a function Date: Fri, 28 Aug 2015 09:55:16 -0700 (PDT) Message-ID: <9eb51198-614a-49f7-8085-2a068dd28852@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 1440781397 4286 80.91.229.3 (28 Aug 2015 17:03:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 17:03:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 28 19:03:12 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 1ZVN3Y-0002Hb-72 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 19:03:12 +0200 Original-Received: from localhost ([::1]:49085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVN3X-00032P-L9 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 13:03:11 -0400 X-Received: by 10.66.122.102 with SMTP id lr6mr11476845pab.44.1440780916823; Fri, 28 Aug 2015 09:55:16 -0700 (PDT) X-Received: by 10.50.111.43 with SMTP id if11mr77753igb.1.1440780916745; Fri, 28 Aug 2015 09:55:16 -0700 (PDT) Original-Path: usenet.stanford.edu!se8no143654igc.0!news-out.google.com!nt1ni17616igb.0!nntp.google.com!se8no143640igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Fri, 28 Aug 2015 16:55:16 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:214621 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:106905 Archived-At: Hi all, Is there a built in way to return the arg list (actually just the number of args) for a function that has been passed to me? If I was just in dynamic scope, I could get cadr and count the size, but I have to support closure as well which is caddr (and however that changes in the future). Best regards, Sam