all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* 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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.