unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hadron Quark <hadronquark@gmail.com>
Subject: Re: Elisp:  Simple function to Add Two Numbers
Date: Sun, 27 Aug 2006 23:47:13 +0200	[thread overview]
Message-ID: <87u03xhmvy.fsf@mail.com> (raw)
In-Reply-To: ihqd5alub00.fsf@chlr7032.ch.intel.com

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	other threads:[~2006-08-27 21:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-27 21:25 Elisp: Simple function to Add Two Numbers Edward Dodge
2006-08-27 21:47 ` Hadron Quark [this message]
2006-08-27 21:55   ` Pascal Bourguignon
2006-08-28  1:39     ` Edward Dodge
2006-08-28  1:50       ` Barry Margolin
2006-08-29  0:18         ` Edward Dodge
2006-08-27 21:55 ` Magnus Henoch
2006-08-27 22:12 ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87u03xhmvy.fsf@mail.com \
    --to=hadronquark@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).