tale@pawl.rpi.edu (David C Lawrence) (04/24/89)
Ugh ... ugh, ugh, ugh ...
I just went through two hours of trying to figure out how come my
process sentinel wasn't working. For some reason (probably lack of
sleep and this bump I have on my head ...) I didn't just put in a
simple (message "called with stat %s" stat); when I finally did I
felt a bit foolish for not having done it sooner. I also felt a bit
misled :-/
I was reading out of an older version of the manual, but I check the
recently announced manual which I installed in the Info tree here and
found it also slightly inaccurate. I had been testing for (eq stat 'exit)
when in reality the processes were returning 'finished. I don't know
if they ever will return 'exit, but the manual surely never mentions
'finished anywhere that I could find.
Perhaps it is my version or something, so here it is:
GNU Emacs 18.53.2 of Tue Apr 11 1989 on imagine.pawl.rpi.edu (berkeley-unix)
By the way, before this thing goes to print are the "(intro!!)"
sections going to be expanded a little?
Dave
--
tale@rpitsmts.bitnet, tale%mts@itsgw.rpi.edu, tale@pawl.rpi.edutale@pawl.rpi.edu (David C Lawrence) (04/24/89)
More fun with processes; I wish the manual had been more clear on this.
What is really sent to the process is not a symbol but a string;
instead of testing for 'exit, what I should have been testing for in
my sentinel was (string-equal stat "finished\n"). Sort of odd that
the newline is in there, but it is.
Boy, do I feel stupid.
--
tale@rpitsmts.bitnet, tale%mts@itsgw.rpi.edu, tale@pawl.rpi.edu