unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Checking Process Status
@ 2003-02-03 14:53 CarlC
  2003-02-03 15:04 ` David Kastrup
  0 siblings, 1 reply; 18+ messages in thread
From: CarlC @ 2003-02-03 14:53 UTC (permalink / raw)


I am trying to make "compile" synchronous. I am defining a function that
does a compile and looks at the *compilation* buffer. I need to wait until
the compile is finished before looking at this buffer. I think that my
problem is not knowing how to check the return of process-status. If I do
(setq stat (process-status "compilation")) right after the compile, it gets
set to a value "run". I don't know if this is a string or other type of
value. These are a couple of things that I have tried:

(while (equal (process-status "compilation") "run") (sleep-for .5))

(while (process-status "compilation") (sleep-for .5))

The first one fails the first time through, before the compile has finished.
The second one never finishes until I C-g, even though (process-status
"compilation") seems to return nil after the compilation finishes.

Does anybody have an idea of what I need to do here? Or is there a better
way of accomplishing this. The compiles normally take a fraction of a second
to complete, so this isn't going to cause the user any problem to have emacs
wait. I would hate to hardcode a delay. Thanks.

^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <mailman.1775.1044945429.21513.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2003-02-13  9:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-03 14:53 Checking Process Status CarlC
2003-02-03 15:04 ` David Kastrup
2003-02-03 17:49   ` Kevin Rodgers
2003-02-03 22:19     ` CarlC
2003-02-03 22:15   ` CarlC
2003-02-03 22:29     ` David Kastrup
2003-02-03 22:42       ` CarlC
2003-02-03 23:56         ` Kevin Rodgers
2003-02-04 17:20           ` Jay Belanger
2003-02-10 20:47             ` Kevin Rodgers
2003-02-11  6:35               ` Eli Zaretskii
2003-02-12 22:03           ` CarlC
     [not found]             ` <qWz2a.39840$yn1.1668284@twister.austin.rr.com>
2003-02-12 22:43               ` David Kastrup
2003-02-12 22:55                 ` CarlC
2003-02-12 23:17                   ` David Kastrup
2003-02-13  9:37                   ` Kai Großjohann
     [not found] <mailman.1775.1044945429.21513.help-gnu-emacs@gnu.org>
2003-02-12  0:10 ` Kevin Rodgers
2003-02-12 17:37   ` Jay Belanger

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).