Mercurial > emacs
changeset 78664:037dc4f731b2
(condition-case): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 27 Aug 2007 03:49:17 +0000 |
parents | 694abdb5f4d2 |
children | e63795496f58 |
files | src/eval.c |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c Sun Aug 26 20:51:29 2007 +0000 +++ b/src/eval.c Mon Aug 27 03:49:17 2007 +0000 @@ -1345,14 +1345,15 @@ If an error happens, the first applicable handler is run. The car of a handler may be a list of condition names -instead of a single condition name. - -When a handler handles an error, -control returns to the condition-case and the handler BODY... is executed -with VAR bound to (SIGNALED-CONDITIONS . SIGNAL-DATA). -VAR may be nil; then you do not get access to the signal information. - -The value of the last BODY form is returned from the condition-case. +instead of a single condition name. Then it handles all of them. + +When a handler handles an error, control returns to the `condition-case' +and it executes the handler's BODY... +with VAR bound to (SIGNALED-CONDITIONS . SIGNAL-DATA) from the error. +(If VAR is nil, the handler can't access that information.) +Then the value of the last BODY form is returned from the `condition-case' +expression. + See also the function `signal' for more info. usage: (condition-case VAR BODYFORM &rest HANDLERS) */) (args)