From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Elisp: Simple function to Add Two Numbers Date: Mon, 28 Aug 2006 00:12:17 +0200 Organization: Organization?!? Message-ID: <85mz9p3k1q.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156718505 9515 80.91.229.2 (27 Aug 2006 22:41:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2006 22:41:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 00:41:43 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 1GHTJx-0003ih-L1 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Aug 2006 00:41:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHTJx-0006UF-5B for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Aug 2006 18:41:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ZZmxCvVUbgyS9+78lokudT+ZrrQ= Original-Lines: 19 Original-NNTP-Posting-Date: 28 Aug 2006 00:12:35 CEST Original-NNTP-Posting-Host: 14b5193f.newsspool1.arcor-online.net Original-X-Trace: DXC=5Hhfn9RcEao_0Po7BmQ3]lic==]BZ:afn4Fo<]lROoRa4nDHegD_]ReiZed[^:?^ghCV`H8_`hhQd^9QSCVg3dOflR6Na 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:36973 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)) Because the arguments would need to be (jabba wabba region-start region-end) You are aware what the final "r" in your interactive spec means? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum