emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested sit-for's


From: Chong Yidong
Subject: Re: Nested sit-for's
Date: Thu, 17 Aug 2006 10:21:48 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

> The potential problem I do see is that jit-lock-stealth-fontify will
> keep looping as long as input-pending-p is nil.  If it were to run
> from inside some other idle timer, that other idle timer would not get
> control back until fontification is finished.

In the case where (load-average) is too high, the idle timer may not
get control back until up to 30 seconds later:

    ;; Wait a little if load is too high.
    (when (and jit-lock-stealth-load
               (> (car (load-average)) jit-lock-stealth-load))
      ;; In case sit-for runs any timers,
      ;; give them the expected current buffer.
      (with-current-buffer outer-buffer
        (sit-for (or jit-lock-stealth-time 30))))))))))))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]