help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waiting for Asynchronous Process


From: David Kastrup
Subject: Re: Waiting for Asynchronous Process
Date: Tue, 26 Aug 2008 00:20:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Eric <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]