[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp: Simple function to Add Two Numbers
From: |
David Kastrup |
Subject: |
Re: Elisp: Simple function to Add Two Numbers |
Date: |
Mon, 28 Aug 2006 00:12:17 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Edward Dodge <user@foo.bar> 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
Re: Elisp: Simple function to Add Two Numbers,
David Kastrup <=