Skip to content

Commit

Permalink
Fix description of restart-bind
Browse files Browse the repository at this point in the history
Plus a minor bugfix to restart-case.
  • Loading branch information
trebb committed Aug 23, 2012
1 parent 14feb34 commit 5594068
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions clqr-conditions-and-errors.tex
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ \section{Conditions and Errors}
\orGOO{\kwd{:interactive} \VAR{ arg-function}\\ \orGOO{\kwd{:interactive} \VAR{ arg-function}\\
\kwd{:report } \xorGOO{% \kwd{:report } \xorGOO{%
\VAR{report-function}\\ \VAR{report-function}\\
\VAR{string}\DF{\LIT{"}\VAR{foo}\LIT{"}}}{.}\\ \VAR{string}\DF{\LIT{"}\VAR{restart}\LIT{"}}}{.}\\
\kwd{:test} \VAR{ test-function}\DF{\T}}{\}} \kwd{:test} \VAR{ test-function}\DF{\T}}{\}}
\OPn{(\kwd{declare} \OPn{\NEV{\VAR{decl}}})} \OPn{(\kwd{declare} \OPn{\NEV{\VAR{decl}}})}
\PROGN{\VAR{restart-form}})})} \PROGN{\VAR{restart-form}})})}
Expand All @@ -181,15 +181,28 @@ \section{Conditions and Errors}
for \OPn{\VAR{ord-$\lambda$}}. for \OPn{\VAR{ord-$\lambda$}}.
} }


\IT{(\MC*{RESTART-BIND} (\OPn{(\xorGOO{\NEV{\VAR{restart}}\\ \IT{(\MC*{RESTART-BIND}
(\OPn{(\xorGOO{%
\NEV{\VAR{restart}}\\
\NIL}{\}} \NIL}{\}}
\VAR{restart-function} \orGOO{\kwd{:interactive-function} \VAR{restart-function}
\VAR{ function}\\ \orGOO{%
\kwd{:report-function} \VAR{ function}\\ \kwd{:interactive-function} \VAR{ arg-function}\\
\kwd{:test-function} \VAR{ function}}{\}})}) \PROGN{\VAR{form}})} \kwd{:report-function} \VAR{ report-function}\\
\kwd{:test-function} \VAR{ test-function}}{\}})})
\PROGN{\VAR{form}})}
{ {
Return \retval{values of \VAR{form}s} evaluated with Return \retval{values of \VAR{form}s} evaluated with dynamically
\VAR{restart}s dynamically bound to \VAR{restart-function}s. established \VAR{restart}s whose \VAR{restart-function}s should
perform a non-local transfer of control. A restart is visible
under \VAR{condition} if (\VAR{test-function} \VAR{condition})
returns \T. If presented in the debugger, \VAR{restart}s ar
described by \VAR{restart-function} (of a stream). A
\VAR{restart} can be called by (\kwd{invoke-restart} \VAR{restart}
\OPn{\VAR{arg}}), where \VAR{arg}s must be suitable for the
corresponding \VAR{restart-function}, or by
(\kwd{invoke-restart-interactively} \VAR{restart}) where a list of
the respective \VAR{arg}s is supplied by \VAR{arg-function}.
} }


\IT{\arrGOO{(\FU*{INVOKE-RESTART} \VAR{ restart} \OPn{\VAR{ arg}})\\ \IT{\arrGOO{(\FU*{INVOKE-RESTART} \VAR{ restart} \OPn{\VAR{ arg}})\\
Expand Down

0 comments on commit 5594068

Please sign in to comment.