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

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

Re: How to define a `multiple prompt' function?


From: Evans Winner
Subject: Re: How to define a `multiple prompt' function?
Date: Wed, 03 Sep 2008 13:43:08 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

    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?

'read-from-minibuffer might be what you want.


(format "Your name is: %s"
        (read-from-minibuffer "Who are you? "))



reply via email to

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