aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/jit-lock.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el
index 5f9196da645..8c798d5c4d0 100644
--- a/lisp/jit-lock.el
+++ b/lisp/jit-lock.el
@@ -583,11 +583,13 @@ non-nil in a repeated invocation of this function."
583 'fontified nil)) 583 'fontified nil))
584 (setq pos (next-single-property-change 584 (setq pos (next-single-property-change
585 pos 'fontified))))))))) 585 pos 'fontified)))))))))
586 (setq jit-lock-defer-buffers nil)
587 ;; Force fontification of the visible parts. 586 ;; Force fontification of the visible parts.
588 (let ((jit-lock-defer-timer nil)) 587 (let ((buffers jit-lock-defer-buffers)
588 (jit-lock-defer-timer nil))
589 (setq jit-lock-defer-buffers nil)
589 ;; (message "Jit-Defer Now") 590 ;; (message "Jit-Defer Now")
590 (sit-for 0) 591 (unless (redisplay) ;FIXME: Should we `force'?
592 (setq jit-lock-defer-buffers buffers))
591 ;; (message "Jit-Defer Done") 593 ;; (message "Jit-Defer Done")
592 ))) 594 )))
593 595