From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Newsgroups: gmane.emacs.help Subject: Waiting for Asynchronous Process Date: Mon, 25 Aug 2008 15:11:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <089da2d2-c201-48ea-b49e-21966e4637f8@i76g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219704146 10594 80.91.229.12 (25 Aug 2008 22:42:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 22:42:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 26 00:43:19 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 1KXkmE-0003sx-Is for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 00:43:10 +0200 Original-Received: from localhost ([127.0.0.1]:60812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXklG-0006tS-4i for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 18:42:10 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i76g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 129.42.161.36 Original-X-Trace: posting.google.com 1219702318 26530 127.0.0.1 (25 Aug 2008 22:11:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 25 Aug 2008 22:11:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i76g2000hsf.googlegroups.com; posting-host=129.42.161.36; posting-account=baqlugoAAADGe3uZxwXNJvS9trKLtCm1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 (CK-IBM) Firefox/2.0.0.16, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161639 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:56980 Archived-At: Suppose I'm writing a function that will compile 4 files (A, B, C, and D). The first three can compile in any order, but D must come last. I want the user to have a responsive Emacs while the compilations are going on. I could do (call-process "theCompiler" .... "A") (call-process "theCompiler" .... "B") ... but then Emacs is "frozen" until all files are compiled. I could do (start-process ...), but then I can't seem to wait for the processes to all exit without causing Emacs to hang. I know that ELisp doesn't do multithreading. Is it possible to do what I want without creating a separate script outside of Emacs?