From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Waiting for Asynchronous Process
Date: Tue, 26 Aug 2008 00:20:04 +0200 [thread overview]
Message-ID: <85iqto20vf.fsf@lola.goethe.zz> (raw)
In-Reply-To: 089da2d2-c201-48ea-b49e-21966e4637f8@i76g2000hsf.googlegroups.com
Eric <etklaus@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
next prev parent reply other threads:[~2008-08-25 22:20 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 [this message]
2008-08-26 20:03 ` Eric
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=85iqto20vf.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--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.