From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.help Subject: How to define a `multiple prompt' function? Date: Wed, 03 Sep 2008 01:21:11 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <87ej42m64o.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220398847 11226 80.91.229.12 (2 Sep 2008 23:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 23:40:47 +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 Sep 03 01:41:42 2008 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.50) id 1KafV9-0001gi-TT for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 01:41:36 +0200 Original-Received: from localhost ([127.0.0.1]:60976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KafUA-0005V5-Ni for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 19:40:34 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.sovam.com!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Cvg12fx1R5Mubnh6ljF5CoWzsIE= Original-Lines: 16 Original-NNTP-Posting-Host: 151.80.26.139 Original-X-Trace: news.sunsite.dk DXC=`neClJBZ]U_U2K\5E[I[:AocXk=\=_TT7bXfBO; G:UKAib\KDO`hRm=c5DAkLCD\eA?^2Le^W\Uco3[7\8kEaV Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:161857 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:57199 Archived-At: I wish to define a function that prompts me more than once: let's call it `my-function': when I type `M-x my-function', in the echo area I see (just an example): Hi, how are you today? . Then I type, e.g., `fine RET', and again it prompts me with: I see. And, what did you do yesterday? ... and so on. Then I'm going to put some `if... else' conditions over my possible answers. Can anybody please provide some hints about how to elisp this? Thanks for any help Rodolfo