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

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

RE: interact with user


From: Drew Adams
Subject: RE: interact with user
Date: Wed, 26 Nov 2008 07:25:25 -0800

> how can i get input from user (interact with user)in function 
> with GNU/emacs,the function interactive only work to parse
> arguments. are there bulitin emacs function or i should
> programming to do it?

Do you mean that you want to ask the user for input and show output to the user?

If so then see the Elisp manual, nodes `Text from Minibuffer' and `Minibuffer
Completion', for reading input. You can use a function such as `completing-read'
or `read-from-minibuffer'.

To show output, you can use function `message' or fill a buffer with the output
and use `display-buffer' or `pop-to-buffer'. See also
`with-output-to-temp-buffer.





reply via email to

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