From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Quark Newsgroups: gmane.emacs.help Subject: Re: Elisp: Simple function to Add Two Numbers Date: Sun, 27 Aug 2006 23:47:13 +0200 Message-ID: <87u03xhmvy.fsf@mail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156718441 9360 80.91.229.2 (27 Aug 2006 22:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2006 22:40:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 00:40:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GHTIw-0003b3-82 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Aug 2006 00:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHTIv-0005lF-Mt for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Aug 2006 18:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-X-Trace: individual.net eJVFvGXgghcpEVDWqZ5dQgPd5pLVmhbkMfhPMALESn+XZjAH5Q X-Orig-Path: news.ibm.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:EqapejPbVGgHvLKPenZurX8piwo= Original-Xref: shelby.stanford.edu gnu.emacs.help:141350 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 Xref: news.gmane.org gmane.emacs.help:36971 Archived-At: Edward Dodge writes: > Please, > > Why do I get "wrong number of arguments" every time I try to run this simple, > straight-forward code? > > (defun ekd-average (jabba wabba) > "Adds two numbers and returns the sum." > (interactive "nFirstvar: \nn Secondvar: \nr") > ( + jabba wabba)) > As a fellow beginner I would say its because you havent properly specified your second argument string in the interactive statement. Check whitespace.