Commit 024a2d76 authored by Chong Yidong's avatar Chong Yidong
Browse files

* eval.c (Fcondition_case): Document `debug' symbol in error handler.

parent bd1ba3e8
2011-08-20 Chong Yidong <cyd@stupidchicken.com> 2011-08-20 Chong Yidong <cyd@stupidchicken.com>
* eval.c (Fsignal): Handle `debug' symbol in error handler (Bug#9329). * eval.c (Fsignal): Handle `debug' symbol in error handler (Bug#9329).
(Fcondition_case): Document `debug' symbol in error handler.
2011-08-19 Eli Zaretskii <eliz@gnu.org> 2011-08-19 Eli Zaretskii <eliz@gnu.org>
......
...@@ -1357,8 +1357,12 @@ A handler is applicable to an error ...@@ -1357,8 +1357,12 @@ A handler is applicable to an error
if CONDITION-NAME is one of the error's condition names. if CONDITION-NAME is one of the error's condition names.
If an error happens, the first applicable handler is run. If an error happens, the first applicable handler is run.
The car of a handler may be a list of condition names The car of a handler may be a list of condition names instead of a
instead of a single condition name. Then it handles all of them. single condition name; then it handles all of them. If the special
condition name `debug' is present in this list, it allows another
condition in the list to run the debugger if `debug-on-error' and the
other usual mechanisms says it should (otherwise, `condition-case'
suppresses the debugger).
When a handler handles an error, control returns to the `condition-case' When a handler handles an error, control returns to the `condition-case'
and it executes the handler's BODY... and it executes the handler's BODY...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment