diff options
| author | Karl Heuer | 1998-06-22 17:35:41 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-06-22 17:35:41 +0000 |
| commit | 735c094c0e9401e11913bf8841bdbde1c6ea902d (patch) | |
| tree | 529a97799e2616772a18237014c4d3f5c8d71d19 /src | |
| parent | 44e553a3fc5c78cfd4a0e9b36a605926eaf68499 (diff) | |
| download | emacs-735c094c0e9401e11913bf8841bdbde1c6ea902d.tar.gz emacs-735c094c0e9401e11913bf8841bdbde1c6ea902d.zip | |
(Vinhibit_redisplay, Qinhibit_redisplay): New variables.
(syms_of_xdisp): Set up Lisp var.
(redisplay_internal): Test Vinhibit_redisplay.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 6a14f44d775..a443021470a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -66,6 +66,10 @@ Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions; | |||
| 66 | Lisp_Object Qredisplay_end_trigger_functions; | 66 | Lisp_Object Qredisplay_end_trigger_functions; |
| 67 | Lisp_Object Qinhibit_point_motion_hooks; | 67 | Lisp_Object Qinhibit_point_motion_hooks; |
| 68 | 68 | ||
| 69 | /* Non-nil means don't actually do any redisplay. */ | ||
| 70 | |||
| 71 | Lisp_Object Vinhibit_redisplay, Qinhibit_redisplay; | ||
| 72 | |||
| 69 | /* Nonzero means print newline to stdout before next minibuffer message. */ | 73 | /* Nonzero means print newline to stdout before next minibuffer message. */ |
| 70 | 74 | ||
| 71 | int noninteractive_need_newline; | 75 | int noninteractive_need_newline; |
| @@ -1036,6 +1040,9 @@ redisplay_internal (preserve_echo_area) | |||
| 1036 | return; | 1040 | return; |
| 1037 | #endif | 1041 | #endif |
| 1038 | 1042 | ||
| 1043 | if (! NILP (Vinhibit_redisplay)) | ||
| 1044 | return; | ||
| 1045 | |||
| 1039 | retry: | 1046 | retry: |
| 1040 | 1047 | ||
| 1041 | if (! FRAME_WINDOW_P (selected_frame) | 1048 | if (! FRAME_WINDOW_P (selected_frame) |
| @@ -5400,6 +5407,9 @@ invisible_ellipsis_p (propval, list) | |||
| 5400 | void | 5407 | void |
| 5401 | syms_of_xdisp () | 5408 | syms_of_xdisp () |
| 5402 | { | 5409 | { |
| 5410 | staticpro (&Qinhibit_redisplay); | ||
| 5411 | Qinhibit_redisplay = intern ("inhibit-redisplay"); | ||
| 5412 | |||
| 5403 | staticpro (&Qmenu_bar_update_hook); | 5413 | staticpro (&Qmenu_bar_update_hook); |
| 5404 | Qmenu_bar_update_hook = intern ("menu-bar-update-hook"); | 5414 | Qmenu_bar_update_hook = intern ("menu-bar-update-hook"); |
| 5405 | 5415 | ||
| @@ -5423,6 +5433,11 @@ syms_of_xdisp () | |||
| 5423 | last_arrow_position = Qnil; | 5433 | last_arrow_position = Qnil; |
| 5424 | last_arrow_string = Qnil; | 5434 | last_arrow_string = Qnil; |
| 5425 | 5435 | ||
| 5436 | DEFVAR_LISP ("inhibit-redisplay", &Vinhibit_redisplay, | ||
| 5437 | "Non-nil means don't actually do any redisplay.\n\ | ||
| 5438 | This is used for internal purposes."); | ||
| 5439 | Vinhibit_redisplay = Qnil; | ||
| 5440 | |||
| 5426 | DEFVAR_LISP ("global-mode-string", &Vglobal_mode_string, | 5441 | DEFVAR_LISP ("global-mode-string", &Vglobal_mode_string, |
| 5427 | "String (or mode line construct) included (normally) in `mode-line-format'."); | 5442 | "String (or mode line construct) included (normally) in `mode-line-format'."); |
| 5428 | Vglobal_mode_string = Qnil; | 5443 | Vglobal_mode_string = Qnil; |