Mercurial > emacs
changeset 43945:fed6d1639bb4
(redisplay_internal, redisplay_windows):
Use list_of_error to call internal_condition_case_1.
(safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
so as to catch all errors with no possibility of debugger redisplay.
(list_of_error): New variable.
(syms_of_xdisp): Init and staticpro it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 16 Mar 2002 07:05:59 +0000 |
parents | 42291dbdcf4b |
children | 031571a8e24c |
files | src/xdisp.c |
diffstat | 1 files changed, 20 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Mar 16 06:53:35 2002 +0000 +++ b/src/xdisp.c Sat Mar 16 07:05:59 2002 +0000 @@ -226,6 +226,9 @@ Lisp_Object Qinhibit_eval_during_redisplay; Lisp_Object Qbuffer_position, Qposition, Qobject; +/* Holds the list (error). */ +Lisp_Object list_of_error; + /* Functions called to fontify regions of text. */ Lisp_Object Vfontification_functions; @@ -1323,7 +1326,9 @@ GCPRO1 (sexpr); specbind (Qinhibit_redisplay, Qt); - val = internal_condition_case_1 (Feval, sexpr, Qerror, + /* Use Qt to ensure debugger does not run, + so there is no possibility of wanting to redisplay. */ + val = internal_condition_case_1 (Feval, sexpr, Qt, safe_eval_handler); UNGCPRO; val = unbind_to (count, val); @@ -1354,7 +1359,9 @@ GCPRO1 (args[0]); gcpro1.nvars = nargs; specbind (Qinhibit_redisplay, Qt); - val = internal_condition_case_2 (Ffuncall, nargs, args, Qerror, + /* Use Qt to ensure debugger does not run, + so there is no possibility of wanting to redisplay. */ + val = internal_condition_case_2 (Ffuncall, nargs, args, Qt, safe_eval_handler); UNGCPRO; val = unbind_to (count, val); @@ -8960,7 +8967,10 @@ struct frame *mini_frame; displayed_buffer = XBUFFER (XWINDOW (selected_window)->buffer); - internal_condition_case_1 (redisplay_window_1, selected_window, Qerror, + /* Use list_of_error, not Qerror, so that + we catch only errors and don't run the debugger. */ + internal_condition_case_1 (redisplay_window_1, selected_window, + list_of_error, redisplay_window_error); /* Compare desired and current matrices, perform output. */ @@ -9299,7 +9309,10 @@ else { displayed_buffer = XBUFFER (w->buffer); - internal_condition_case_1 (redisplay_window_0, window, Qerror, + /* Use list_of_error, not Qerror, so that + we catch only errors and don't run the debugger. */ + internal_condition_case_1 (redisplay_window_0, window, + list_of_error, redisplay_window_error); } @@ -14887,6 +14900,9 @@ Qobject = intern ("object"); staticpro (&Qobject); + list_of_error = Fcons (intern ("error"), Qnil); + staticpro (&list_of_error); + last_arrow_position = Qnil; last_arrow_string = Qnil; staticpro (&last_arrow_position);