From 6d8a32093e77cd0ccc3cbd922d10d16339067e4c Mon Sep 17 00:00:00 2001 From: frese Date: Fri, 16 Jul 2004 12:51:48 +0000 Subject: [PATCH] - added doc for chat-abort, chat-timeout, chat-monitor and the return value of chat --- doc/chat.doc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/chat.doc b/doc/chat.doc index 0d100de..793e373 100644 --- a/doc/chat.doc +++ b/doc/chat.doc @@ -12,4 +12,23 @@ logging output funs? side-effecting option setting (chat-abort ) + if this regular expression is matched, the chat call is aborted. (chat-timeout ) + sets the timeout for look-for calls + (chat-monitor ) + monitor has to be a function taking two arguments (event val), + where event is a symbol, and val a possible value for this + event: + - looking-for(re) + - found(match) + - new-input(text) + - sending(text) + - abort(text) + - eof + - timeout + +chat can return the following values: + - 'eof + - 'timeout if no timeout-handler was specified in a look-for clause + - in case of an abortion the submatch of the abort-regexp + - #f if the whole body evaluated normally