all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Waiting for Asynchronous Process
@ 2008-08-25 22:11 Eric
  2008-08-25 22:20 ` David Kastrup
  2008-08-27 18:39 ` Colin S. Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Eric @ 2008-08-25 22:11 UTC (permalink / raw)
  To: help-gnu-emacs

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-27 18:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 22:11 Waiting for Asynchronous Process Eric
2008-08-25 22:20 ` David Kastrup
2008-08-26 20:03   ` Eric
2008-08-27 18:39 ` Colin S. Miller

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.