diff options
| author | Chong Yidong | 2011-08-20 17:22:46 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-08-20 17:22:46 -0400 |
| commit | 024a2d76113268052dd9fa85c915c6fb9f29c152 (patch) | |
| tree | 4bbee38c58741c5211f7c49eee8b46cf41d8d218 | |
| parent | bd1ba3e824d2d070b76e0c77529a993db2d8b4ba (diff) | |
| download | emacs-024a2d76113268052dd9fa85c915c6fb9f29c152.tar.gz emacs-024a2d76113268052dd9fa85c915c6fb9f29c152.zip | |
* eval.c (Fcondition_case): Document `debug' symbol in error handler.
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/eval.c | 8 |
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 @@ | |||
| 1 | 2011-08-20 Chong Yidong <cyd@stupidchicken.com> | 1 | 2011-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 | ||
| 5 | 2011-08-19 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-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 | |||
| 1357 | if CONDITION-NAME is one of the error's condition names. | 1357 | if CONDITION-NAME is one of the error's condition names. |
| 1358 | If an error happens, the first applicable handler is run. | 1358 | If an error happens, the first applicable handler is run. |
| 1359 | 1359 | ||
| 1360 | The car of a handler may be a list of condition names | 1360 | The car of a handler may be a list of condition names instead of a |
| 1361 | instead of a single condition name. Then it handles all of them. | 1361 | single condition name; then it handles all of them. If the special |
| 1362 | condition name `debug' is present in this list, it allows another | ||
| 1363 | condition in the list to run the debugger if `debug-on-error' and the | ||
| 1364 | other usual mechanisms says it should (otherwise, `condition-case' | ||
| 1365 | suppresses the debugger). | ||
| 1362 | 1366 | ||
| 1363 | When a handler handles an error, control returns to the `condition-case' | 1367 | When a handler handles an error, control returns to the `condition-case' |
| 1364 | and it executes the handler's BODY... | 1368 | and it executes the handler's BODY... |