help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp: Simple function to Add Two Numbers


From: Hadron Quark
Subject: Re: Elisp: Simple function to Add Two Numbers
Date: Sun, 27 Aug 2006 23:47:13 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) 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))
>

As a fellow beginner I would say its because you havent properly
specified your second argument string in the interactive
statement. Check whitespace.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]