From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mflynn@scu.edu Newsgroups: gmane.emacs.help Subject: ELisp Interactive Calls Date: Fri, 19 Dec 2014 12:13:34 -0800 (PST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1419020132 23873 80.91.229.3 (19 Dec 2014 20:15:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2014 20:15:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 19 21:15:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y23xI-0006U1-0t for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 21:15:20 +0100 Original-Received: from localhost ([::1]:60424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y23xH-0007QM-DT for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 15:15:19 -0500 X-Received: by 10.224.111.196 with SMTP id t4mr7420197qap.8.1419020015609; Fri, 19 Dec 2014 12:13:35 -0800 (PST) X-Received: by 10.50.154.72 with SMTP id vm8mr82500igb.2.1419020015443; Fri, 19 Dec 2014 12:13:35 -0800 (PST) Original-Path: usenet.stanford.edu!i13no769226qae.0!news-out.google.com!d20ni20372igz.0!nntp.google.com!h15no26332123igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.210.51.232; posting-account=KIvACwkAAACqw8z2Rbtn9ImPywkjXOa4 Original-NNTP-Posting-Host: 129.210.51.232 User-Agent: G2/1.0 Injection-Date: Fri, 19 Dec 2014 20:13:35 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209403 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101682 Archived-At: After all these years I'm trying to teach myself how to write Emacs Lisp programs. To call this function: (defun my-test-function (arg1) "DOC: Multiply two numbers." (interactive "p") (message "The square of the arg is: %d" (* arg1 arg1)) ) I type: Ctrl-U 8 Esc-x my-test-function and 64 is printed, as I would expect. But I'm not sure how to supply two args interactively. (defun my-test-function (arg1 arg2) "DOC: Multiply two numbers." (interactive "p p") (message "The product of the args is: %d" (* arg1 arg2)) ) How do I call this? If I type Ctrl-U 8 8 Esc-x my-test-function the call fails with a Wrong number of args message. The second 8 I type just shows up in the scratch buffer. Thanks