From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xend Newsgroups: gmane.emacs.help Subject: Re: interact with user Date: Thu, 27 Nov 2008 18:22:50 -0800 (PST) Organization: http://groups.google.com Message-ID: <16fad75e-2c85-4ccb-ab84-18f516408367@p2g2000prn.googlegroups.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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227840090 7825 80.91.229.12 (28 Nov 2008 02:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2008 02:41:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 28 03:42:33 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 1L5tJQ-00073t-OX for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 03:42:32 +0100 Original-Received: from localhost ([127.0.0.1]:42641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5tIG-0005GA-Js for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 21:41:20 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p2g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 123.149.26.168 Original-X-Trace: posting.google.com 1227838971 22844 127.0.0.1 (28 Nov 2008 02:22:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 28 Nov 2008 02:22:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prn.googlegroups.com; posting-host=123.149.26.168; posting-account=o4YrVwoAAAAAIOu9uBqaRT4EH9JiGtz4 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164847 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:60174 Archived-At: On Nov 26, 11:25=A0pm, "Drew Adams" wrote: > > 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 th= e user? > > If so then see the Elisp manual, nodes `Text from Minibuffer' and `Minibu= ffer > Completion', for reading input. You can use a function such as `completin= g-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. thanks men