At 11:13 AM 8/10/00 -0400, you wrote:
>compilation-finish-function seems to be a good candidate.
>e.g.
>
>(setq compilation-finish-function
> (lambda (buf msg)
> (message (format "Comp: %s." msg))))
>
>msg is one of: "Finished^J" or "exited abnormally with code N^J" where
>N is the exit code. In FSF compile.el the messages seem to be
>generated in compile-internal but I'm not sure where they are
>generated in XEmacs (they appear to be different...). I don't see an
>obvious way to extract the exit code directly without parsing this
>message (at least in XEmacs the buffer and process are dissasociated
>by the time this function is called).
>
>I hope that helps or at least doesn't hurt. :-)
Thanks very much. This sounds like what I am looking for.
Regards,
Paul