From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Waiting for Asynchronous Process Date: Tue, 26 Aug 2008 00:20:04 +0200 Organization: Organization?!? Message-ID: <85iqto20vf.fsf@lola.goethe.zz> References: <089da2d2-c201-48ea-b49e-21966e4637f8@i76g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219704187 10708 80.91.229.12 (25 Aug 2008 22:43:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 22:43:07 +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:44:01 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 1KXkmz-000457-Qv for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 00:43:58 +0200 Original-Received: from localhost ([127.0.0.1]:38820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXkm1-0007SB-LW for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 18:42:57 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.straub-nv.de!news.k-dsl.de!newsfeed-fusi2.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Osj7jPS+qwf6JW3uxwhTmGZ/vKg= Original-Lines: 21 Original-NNTP-Posting-Date: 26 Aug 2008 00:20:05 CEST Original-NNTP-Posting-Host: 0f5c9acc.newsspool4.arcor-online.net Original-X-Trace: DXC=Jd64>:5`=MK2:OR3:3gaE@4IUK\BH3YBaP]bT54aaUGCV`H8_`hhQD^9QSCVg3dOFOIC5DBZVJ9K99]fSMeYDoGM=mVBLWfNPM Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:161640 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:56981 Archived-At: Eric writes: > 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? (info "(elisp) Sentinels") -- David Kastrup, Kriemhildstr. 15, 44793 Bochum