Mercurial > emacs
comparison src/eval.c @ 40661:2677a5e901f8
(debugger_may_continue, Vdebug_ignored_errors, call_debugger,
Fcondition_case, skip_debugger, unbind_to): Fix typos in comments.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Fri, 02 Nov 2001 22:40:00 +0000 |
parents | cdfd4d09b79a |
children | 21597de09a0d |
comparison
equal
deleted
inserted
replaced
40660:4ba657edf1a1 | 40661:2677a5e901f8 |
---|---|
132 | 132 |
133 /* Nonzero means enter debugger before next function call */ | 133 /* Nonzero means enter debugger before next function call */ |
134 | 134 |
135 int debug_on_next_call; | 135 int debug_on_next_call; |
136 | 136 |
137 /* Non-zero means debuffer may continue. This is zero when the | 137 /* Non-zero means debugger may continue. This is zero when the |
138 debugger is called during redisplay, where it might not be safe to | 138 debugger is called during redisplay, where it might not be safe to |
139 continue the interrupted redisplay. */ | 139 continue the interrupted redisplay. */ |
140 | 140 |
141 int debugger_may_continue; | 141 int debugger_may_continue; |
142 | 142 |
149 if an error is handled by the command loop's error handler. */ | 149 if an error is handled by the command loop's error handler. */ |
150 | 150 |
151 Lisp_Object Vdebug_on_error; | 151 Lisp_Object Vdebug_on_error; |
152 | 152 |
153 /* List of conditions and regexps specifying error messages which | 153 /* List of conditions and regexps specifying error messages which |
154 do not enter the debugger even if Vdebug_on_errors says they should. */ | 154 do not enter the debugger even if Vdebug_on_error says they should. */ |
155 | 155 |
156 Lisp_Object Vdebug_ignored_errors; | 156 Lisp_Object Vdebug_ignored_errors; |
157 | 157 |
158 /* Non-nil means call the debugger even if the error will be handled. */ | 158 /* Non-nil means call the debugger even if the error will be handled. */ |
159 | 159 |
263 | 263 |
264 val = apply1 (Vdebugger, arg); | 264 val = apply1 (Vdebugger, arg); |
265 | 265 |
266 /* Interrupting redisplay and resuming it later is not safe under | 266 /* Interrupting redisplay and resuming it later is not safe under |
267 all circumstances. So, when the debugger returns, abort the | 267 all circumstances. So, when the debugger returns, abort the |
268 interupted redisplay by going back to the top-level. */ | 268 interrupted redisplay by going back to the top-level. */ |
269 if (debug_while_redisplaying) | 269 if (debug_while_redisplaying) |
270 Ftop_level (); | 270 Ftop_level (); |
271 | 271 |
272 return unbind_to (count, val); | 272 return unbind_to (count, val); |
273 } | 273 } |
1182 | 1182 |
1183 struct handler *handlerlist; | 1183 struct handler *handlerlist; |
1184 | 1184 |
1185 DEFUN ("condition-case", Fcondition_case, Scondition_case, 2, UNEVALLED, 0, | 1185 DEFUN ("condition-case", Fcondition_case, Scondition_case, 2, UNEVALLED, 0, |
1186 doc: /* Regain control when an error is signaled. | 1186 doc: /* Regain control when an error is signaled. |
1187 executes BODYFORM and returns its value if no error happens. | 1187 Executes BODYFORM and returns its value if no error happens. |
1188 Each element of HANDLERS looks like (CONDITION-NAME BODY...) | 1188 Each element of HANDLERS looks like (CONDITION-NAME BODY...) |
1189 where the BODY is made of Lisp expressions. | 1189 where the BODY is made of Lisp expressions. |
1190 | 1190 |
1191 A handler is applicable to an error | 1191 A handler is applicable to an error |
1192 if CONDITION-NAME is one of the error's condition names. | 1192 if CONDITION-NAME is one of the error's condition names. |
1553 return 0; | 1553 return 0; |
1554 } | 1554 } |
1555 | 1555 |
1556 /* Return 1 if an error with condition-symbols CONDITIONS, | 1556 /* Return 1 if an error with condition-symbols CONDITIONS, |
1557 and described by SIGNAL-DATA, should skip the debugger | 1557 and described by SIGNAL-DATA, should skip the debugger |
1558 according to debugger-ignore-errors. */ | 1558 according to debugger-ignored-errors. */ |
1559 | 1559 |
1560 static int | 1560 static int |
1561 skip_debugger (conditions, data) | 1561 skip_debugger (conditions, data) |
1562 Lisp_Object conditions, data; | 1562 Lisp_Object conditions, data; |
1563 { | 1563 { |
3067 else if (NILP (specpdl_ptr->symbol)) | 3067 else if (NILP (specpdl_ptr->symbol)) |
3068 Fprogn (specpdl_ptr->old_value); | 3068 Fprogn (specpdl_ptr->old_value); |
3069 /* If the symbol is a list, it is really (SYMBOL WHERE | 3069 /* If the symbol is a list, it is really (SYMBOL WHERE |
3070 . CURRENT-BUFFER) where WHERE is either nil, a buffer, or a | 3070 . CURRENT-BUFFER) where WHERE is either nil, a buffer, or a |
3071 frame. If WHERE is a buffer or frame, this indicates we | 3071 frame. If WHERE is a buffer or frame, this indicates we |
3072 bound a variable that had a buffer-local or frmae-local | 3072 bound a variable that had a buffer-local or frame-local |
3073 binding.. WHERE nil means that the variable had the default | 3073 binding. WHERE nil means that the variable had the default |
3074 value when it was bound. CURRENT-BUFFER is the buffer that | 3074 value when it was bound. CURRENT-BUFFER is the buffer that |
3075 was current when the variable was bound. */ | 3075 was current when the variable was bound. */ |
3076 else if (CONSP (specpdl_ptr->symbol)) | 3076 else if (CONSP (specpdl_ptr->symbol)) |
3077 { | 3077 { |
3078 Lisp_Object symbol, where; | 3078 Lisp_Object symbol, where; |