From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: How many parameters does an elisp function take? Date: Wed, 16 Feb 2005 20:11:53 +0000 Organization: muc.de e.V. -- private internet access Message-ID: <9e90vc.o7.ln@acm.acm> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1108585139 4079 80.91.229.2 (16 Feb 2005 20:18:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2005 20:18:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 16 21:18:59 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D1VdP-0002UB-Mu for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Feb 2005 21:18:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1VtP-0004IK-Tm for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Feb 2005 15:35:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!news.csl-gmbh.net!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1108585013 86078 193.149.49.134 (16 Feb 2005 20:16:53 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 16 Feb 2005 20:16:53 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:128606 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24137 Is it possible to determine at run time how many parameters an elisp function takes? For example, I'd like to write something like: (how-many-params 'null) and have it evaluate to 1. Or something like that. Together with some reasonable convention for indicating &optional and &rest arguments. -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").