From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: a function more than interactive.. Date: Tue, 11 May 2010 13:46:12 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: <98189c61-6637-4e08-949b-a591904f9271@b7g2000yqk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1291826492 16357 80.91.229.12 (8 Dec 2010 16:41:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:41: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 Wed Dec 08 17:41:28 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQN56-0006kk-3c for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:41:28 +0100 Original-Received: from localhost ([127.0.0.1]:38250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQN54-0004fz-Os for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:41:27 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!news-zh.switch.ch!switch.ch!solnet.ch!solnet.ch!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: marvin.muc.de Original-X-Trace: colin2.muc.de 1273585572 6799 2001:608:1000::2 (11 May 2010 13:46:12 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Tue, 11 May 2010 13:46:12 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Original-Xref: usenet.stanford.edu gnu.emacs.help:178127 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:75631 Archived-At: jdx2172 wrote: > [Dont know what to call this functionality in emacs.. hence the > subject "more than interactive..."] > How do I write a function that when executed prompts the user to enter > a value at a prompt, asks another value and so on.. until all the > arguments are provided returns a result. If you're prompting the user at the start of the command, use `interactive'. It has lots of rarely used argument types, which together will probably do what you want. "C-h f interactive" is your friend. -- Alan Mackenzie (Nuremberg, Germany).