unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Xend'" <firperfect@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: interact with user
Date: Wed, 26 Nov 2008 07:25:25 -0800	[thread overview]
Message-ID: <000f01c94fdb$34d69500$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <5e7d7456-b98e-4750-8f46-f05568f1db0c@a29g2000pra.googlegroups.com>

> 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.





  parent reply	other threads:[~2008-11-26 15:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 13:39 interact with user Xend
2008-11-26 13:46 ` Xah Lee
2008-11-28  2:23   ` Xend
2008-11-26 15:25 ` Drew Adams [this message]
     [not found] ` <mailman.1294.1227713142.26697.help-gnu-emacs@gnu.org>
2008-11-28  2:22   ` Xend

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000f01c94fdb$34d69500$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=firperfect@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).