[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking Process Status
From: |
David Kastrup |
Subject: |
Re: Checking Process Status |
Date: |
03 Feb 2003 16:04:45 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
"CarlC" <carlc@snowbd.com> writes:
> 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?
Save the old value of the process' sentinel, enter your own function
there, and have that do its work as well as calling the saved
sentinel.
Look up the appropriate keywords in the Elisp manual.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Checking Process Status, CarlC, 2003/02/03
- Re: Checking Process Status,
David Kastrup <=
- Re: Checking Process Status, Kevin Rodgers, 2003/02/03
- Re: Checking Process Status, CarlC, 2003/02/03
- Re: Checking Process Status, David Kastrup, 2003/02/03
- Re: Checking Process Status, CarlC, 2003/02/03
- Re: Checking Process Status, Kevin Rodgers, 2003/02/03
- Re: Checking Process Status, Jay Belanger, 2003/02/04
- Re: Checking Process Status, Kevin Rodgers, 2003/02/10
- Re: Checking Process Status, Eli Zaretskii, 2003/02/11
- Re: Checking Process Status, CarlC, 2003/02/12