From: Eric <etklaus@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Waiting for Asynchronous Process
Date: Mon, 25 Aug 2008 15:11:57 -0700 (PDT) [thread overview]
Message-ID: <089da2d2-c201-48ea-b49e-21966e4637f8@i76g2000hsf.googlegroups.com> (raw)
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?
next reply other threads:[~2008-08-25 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 22:11 Eric [this message]
2008-08-25 22:20 ` Waiting for Asynchronous Process David Kastrup
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=089da2d2-c201-48ea-b49e-21966e4637f8@i76g2000hsf.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).