From: Eric <etklaus@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Waiting for Asynchronous Process
Date: Tue, 26 Aug 2008 13:03:56 -0700 (PDT) [thread overview]
Message-ID: <2c17efba-e5c4-420d-945c-cdf7fe07e6df@d77g2000hsb.googlegroups.com> (raw)
In-Reply-To: 85iqto20vf.fsf@lola.goethe.zz
On Aug 25, 5:20 pm, David Kastrup <d...@gnu.org> wrote:
> Eric <etkl...@gmail.com> 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!
next prev parent reply other threads:[~2008-08-26 20:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 22:11 Waiting for Asynchronous Process Eric
2008-08-25 22:20 ` David Kastrup
2008-08-26 20:03 ` Eric [this message]
2008-08-27 18:39 ` Colin S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c17efba-e5c4-420d-945c-cdf7fe07e6df@d77g2000hsb.googlegroups.com \
--to=etklaus@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.