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: Eric
Subject: Re: Waiting for Asynchronous Process
Date: Tue, 26 Aug 2008 13:03:56 -0700 (PDT)
User-agent: G2/1.0

On Aug 25, 5:20 pm, David Kastrup <address@hidden> wrote:
> 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

That did it. All I needed to do was hit next once more in the manual
and I would have reached the chapter on Sentinels.
Thanks for the help!


reply via email to

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