From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: eric1i@163.com (Richard) Newsgroups: gmane.emacs.help Subject: Re: Load other program from emacs Date: 5 Nov 2003 18:03:19 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <18aeee20.0311051803.2841f84c@posting.google.com> References: <4yk76fkws3.fsf@skjellgran.ii.uib.no> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1068085108 9240 80.91.224.253 (6 Nov 2003 02:18:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2003 02:18:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 03:18:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AHZj5-0006WK-00 for ; Thu, 06 Nov 2003 03:18:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AHZiH-0007I8-6q for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2003 21:17:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 203.29.131.24 Original-X-Trace: posting.google.com 1068084200 939 127.0.0.1 (6 Nov 2003 02:03:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 Nov 2003 02:03:20 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:117905 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13844 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13844 Thanks a lot! It workds very well except a buffer call 'Async Shell Command' popup. It not a problem, but if any method can hide it automatically will make things better. Richard Joakim Hove wrote in message news:<4yk76fkws3.fsf@skjellgran.ii.uib.no>... > Li Chen writes: > > > Is there any method which can load other programs within emacs and > > return the control to emacs immediately instead leave emacs waiting > > until that program was ended? > > C-h f shell-command: > > > shell-command is an interactive compiled Lisp function in `simple'. > (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER) > > Execute string COMMAND in inferior shell; display output, if any. > With prefix argument, insert the COMMAND's output at point. > > If COMMAND ends in ampersand, execute it asynchronously. > The output appears in the buffer `*Async Shell Command*'. > That buffer is in shell mode. > ... > ... > > So, adding an "&" at the end of the command should do the trick? > > HTH - Joakim