From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: interact with user Date: Wed, 26 Nov 2008 07:25:25 -0800 Message-ID: <000f01c94fdb$34d69500$0200a8c0@us.oracle.com> References: <5e7d7456-b98e-4750-8f46-f05568f1db0c@a29g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227713171 2673 80.91.229.12 (26 Nov 2008 15:26:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2008 15:26:11 +0000 (UTC) To: "'Xend'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 16:27:14 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 1L5MIK-0003UY-F7 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 16:27:12 +0100 Original-Received: from localhost ([127.0.0.1]:52377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5MHA-0005tu-IP for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 10:26:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5MGq-0005tH-J8 for help-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:25:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5MGp-0005sz-AW for help-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:25:40 -0500 Original-Received: from [199.232.76.173] (port=53826 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5MGp-0005sp-14 for help-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:25:39 -0500 Original-Received: from rcsinet13.oracle.com ([148.87.113.125]:17238 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L5MGo-0003AC-Jb for help-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:25:38 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAQFPpIp009220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 26 Nov 2008 15:25:52 GMT Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAQFPW4i018223; Wed, 26 Nov 2008 15:25:34 GMT Original-Received: from dradamslap1 (/141.144.73.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 26 Nov 2008 07:25:25 -0800 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <5e7d7456-b98e-4750-8f46-f05568f1db0c@a29g2000pra.googlegroups.com> Thread-Index: AclP08/QdHkNZUALQdGOnfRi0DB3LgABggaQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.492D6A69.0231:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:60134 Archived-At: > 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.