aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-08-20 17:22:46 -0400
committerChong Yidong2011-08-20 17:22:46 -0400
commit024a2d76113268052dd9fa85c915c6fb9f29c152 (patch)
tree4bbee38c58741c5211f7c49eee8b46cf41d8d218
parentbd1ba3e824d2d070b76e0c77529a993db2d8b4ba (diff)
downloademacs-024a2d76113268052dd9fa85c915c6fb9f29c152.tar.gz
emacs-024a2d76113268052dd9fa85c915c6fb9f29c152.zip
* eval.c (Fcondition_case): Document `debug' symbol in error handler.
-rw-r--r--src/ChangeLog1
-rw-r--r--src/eval.c8
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index adf7291eadf..82d75d39b40 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,7 @@
12011-08-20 Chong Yidong <cyd@stupidchicken.com> 12011-08-20 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * eval.c (Fsignal): Handle `debug' symbol in error handler (Bug#9329). 3 * eval.c (Fsignal): Handle `debug' symbol in error handler (Bug#9329).
4 (Fcondition_case): Document `debug' symbol in error handler.
4 5
52011-08-19 Eli Zaretskii <eliz@gnu.org> 62011-08-19 Eli Zaretskii <eliz@gnu.org>
6 7
diff --git a/src/eval.c b/src/eval.c
index 8b121665ff7..372e9954620 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1357,8 +1357,12 @@ A handler is applicable to an error
1357if CONDITION-NAME is one of the error's condition names. 1357if CONDITION-NAME is one of the error's condition names.
1358If an error happens, the first applicable handler is run. 1358If an error happens, the first applicable handler is run.
1359 1359
1360The car of a handler may be a list of condition names 1360The car of a handler may be a list of condition names instead of a
1361instead of a single condition name. Then it handles all of them. 1361single condition name; then it handles all of them. If the special
1362condition name `debug' is present in this list, it allows another
1363condition in the list to run the debugger if `debug-on-error' and the
1364other usual mechanisms says it should (otherwise, `condition-case'
1365suppresses the debugger).
1362 1366
1363When a handler handles an error, control returns to the `condition-case' 1367When a handler handles an error, control returns to the `condition-case'
1364and it executes the handler's BODY... 1368and it executes the handler's BODY...