From e88ab01bc65354de86f880373bd3d6b09690a529 Mon Sep 17 00:00:00 2001
From: toy <toy>
Date: Wed, 4 Jun 2003 20:56:44 +0000
Subject: [PATCH] o Correct the documented arg order for WITH-FD-HANDLER and  
 WAIT-UNTIL-FD-USABLE to match the code. o Add a note that WITH-FD-HANDLER
 uses an unwind-protect and removes   the handler when done.

---
 docs/cmu-user/serve-event.tex | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/cmu-user/serve-event.tex b/docs/cmu-user/serve-event.tex
index 3f803d15b..e2e005ac5 100644
--- a/docs/cmu-user/serve-event.tex
+++ b/docs/cmu-user/serve-event.tex
@@ -146,16 +146,18 @@ descriptor as it's single argument.
 \end{defun}
 
 \begin{defmac}{system:}{with-fd-handler}{%
-    \args{(\var{direction} \var{fd} \var{function})
+    \args{(\var{fd} \var{direction} \var{function})
       \mstar{\var{form}}}}
       
   This macro executes the supplied forms with a handler installed
   using \var{fd}, \var{direction}, and \var{function}.  See
-  \code{system:add-fd-handler}.
+  \code{system:add-fd-handler}.  The forms are wrapped in an
+  \code{unwind-protect};  the handler is removed (see
+  \code{system:remove-fd-handler}) when done.
 \end{defmac}
 
 \begin{defun}{system:}{wait-until-fd-usable}{%
-    \args{\var{direction} \var{fd} \ampoptional{} \var{timeout}}}
+    \args{\var{fd} \var{direction} \ampoptional{} \var{timeout}}}
       
   This function waits for up to \var{timeout} seconds for \var{fd} to
   become usable for \var{direction} (either \kwd{input} or
-- 
GitLab