From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: get nargs for a function Date: Fri, 28 Aug 2015 10:10:28 -0700 Message-ID: <20150828170951.20993.29E1C30F@ahiker.mooo.com> References: <9eb51198-614a-49f7-8085-2a068dd28852@googlegroups.com> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1440781853 11895 80.91.229.3 (28 Aug 2015 17:10:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 17:10:53 +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:10:53 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 1ZVNAy-0002OK-9w for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 19:10:52 +0200 Original-Received: from localhost ([::1]:49117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNAx-0004EB-Il for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 13:10:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNAd-0004Du-Kv for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 13:10:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVNAc-0007hh-U3 for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 13:10:31 -0400 Original-Received: from disorder-1-pt.tunnel.tserv3.fmt2.ipv6.he.net ([2001:470:1f04:51a::2]:51165 helo=acedia.primate.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNAc-0007gm-EK for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 13:10:30 -0400 Original-Received: from acedia.primate.net (localhost [127.0.0.1]) by acedia.primate.net (8.14.9/8.14.9/Debian-4) with ESMTP id t7SHAT58004317 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Aug 2015 10:10:29 -0700 Original-Received: (from itz@localhost) by acedia.primate.net (8.14.9/8.14.9/Submit) id t7SHASeC004309 for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 10:10:28 -0700 X-Authentication-Warning: acedia.primate.net: itz set sender to itz@buug.org using -f Original-Received: from itz by ahiker.mooo.com with local (Exim 4.80) (envelope-from ) id 1ZVNAa-0005TQ-Px for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 10:10:28 -0700 Content-Disposition: inline In-Reply-To: <9eb51198-614a-49f7-8085-2a068dd28852@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:470:1f04:51a::2 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:106906 Archived-At: On 2015-08-28 09:55 -0700, Sam Halliday wrote: > 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). How does advice do it? -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.