diff options
| author | Kim F. Storm | 2007-02-22 16:04:08 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2007-02-22 16:04:08 +0000 |
| commit | a2130dbb79355fbafa71390d941d373a90d21a67 (patch) | |
| tree | 21e6d7666ade28a85e0bcb2c0b4d74eaae3cf4f1 /src | |
| parent | d1eeefebd0c98f72a94121b31f789e3e9ba65703 (diff) | |
| download | emacs-a2130dbb79355fbafa71390d941d373a90d21a67.tar.gz emacs-a2130dbb79355fbafa71390d941d373a90d21a67.zip | |
(update_frame, update_single_window): Set force_p here if
redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
(update_window, update_frame_1): ... instead of here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 172f07c663a..7841ffac76a 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -3827,8 +3827,12 @@ update_frame (f, force_p, inhibit_hairy_id_p) | |||
| 3827 | int paused_p; | 3827 | int paused_p; |
| 3828 | struct window *root_window = XWINDOW (f->root_window); | 3828 | struct window *root_window = XWINDOW (f->root_window); |
| 3829 | 3829 | ||
| 3830 | if (redisplay_dont_pause) | ||
| 3831 | force_p = 1; | ||
| 3830 | #if PERIODIC_PREEMPTION_CHECKING | 3832 | #if PERIODIC_PREEMPTION_CHECKING |
| 3831 | if (!force_p && NUMBERP (Vredisplay_preemption_period)) | 3833 | else if (NILP (Vredisplay_preemption_period)) |
| 3834 | force_p = 1; | ||
| 3835 | else if (!force_p && NUMBERP (Vredisplay_preemption_period)) | ||
| 3832 | { | 3836 | { |
| 3833 | EMACS_TIME tm; | 3837 | EMACS_TIME tm; |
| 3834 | double p = XFLOATINT (Vredisplay_preemption_period); | 3838 | double p = XFLOATINT (Vredisplay_preemption_period); |
| @@ -3982,8 +3986,12 @@ update_single_window (w, force_p) | |||
| 3982 | /* Record that this is not a frame-based redisplay. */ | 3986 | /* Record that this is not a frame-based redisplay. */ |
| 3983 | set_frame_matrix_frame (NULL); | 3987 | set_frame_matrix_frame (NULL); |
| 3984 | 3988 | ||
| 3989 | if (redisplay_dont_pause) | ||
| 3990 | force_p = 1; | ||
| 3985 | #if PERIODIC_PREEMPTION_CHECKING | 3991 | #if PERIODIC_PREEMPTION_CHECKING |
| 3986 | if (!force_p && NUMBERP (Vredisplay_preemption_period)) | 3992 | else if (NILP (Vredisplay_preemption_period)) |
| 3993 | force_p = 1; | ||
| 3994 | else if (!force_p && NUMBERP (Vredisplay_preemption_period)) | ||
| 3987 | { | 3995 | { |
| 3988 | EMACS_TIME tm; | 3996 | EMACS_TIME tm; |
| 3989 | double p = XFLOATINT (Vredisplay_preemption_period); | 3997 | double p = XFLOATINT (Vredisplay_preemption_period); |
| @@ -4165,13 +4173,8 @@ update_window (w, force_p) | |||
| 4165 | #endif | 4173 | #endif |
| 4166 | 4174 | ||
| 4167 | /* Check pending input the first time so that we can quickly return. */ | 4175 | /* Check pending input the first time so that we can quickly return. */ |
| 4168 | if (redisplay_dont_pause) | 4176 | #if !PERIODIC_PREEMPTION_CHECKING |
| 4169 | force_p = 1; | 4177 | if (!force_p) |
| 4170 | #if PERIODIC_PREEMPTION_CHECKING | ||
| 4171 | else if (NILP (Vredisplay_preemption_period)) | ||
| 4172 | force_p = 1; | ||
| 4173 | #else | ||
| 4174 | else if (!force_p) | ||
| 4175 | detect_input_pending_ignore_squeezables (); | 4178 | detect_input_pending_ignore_squeezables (); |
| 4176 | #endif | 4179 | #endif |
| 4177 | 4180 | ||
| @@ -5215,13 +5218,8 @@ update_frame_1 (f, force_p, inhibit_id_p) | |||
| 5215 | if (preempt_count <= 0) | 5218 | if (preempt_count <= 0) |
| 5216 | preempt_count = 1; | 5219 | preempt_count = 1; |
| 5217 | 5220 | ||
| 5218 | if (redisplay_dont_pause) | 5221 | #if !PERIODIC_PREEMPTION_CHECKING |
| 5219 | force_p = 1; | 5222 | if (!force_p && detect_input_pending_ignore_squeezables ()) |
| 5220 | #if PERIODIC_PREEMPTION_CHECKING | ||
| 5221 | else if (NILP (Vredisplay_preemption_period)) | ||
| 5222 | force_p = 1; | ||
| 5223 | #else | ||
| 5224 | else if (!force_p && detect_input_pending_ignore_squeezables ()) | ||
| 5225 | { | 5223 | { |
| 5226 | pause = 1; | 5224 | pause = 1; |
| 5227 | goto do_pause; | 5225 | goto do_pause; |