[Top][All Lists]
[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))))))))))))))
- Re: Nested sit-for's, (continued)
- Re: Nested sit-for's, Richard Stallman, 2006/08/21
- Re: Nested sit-for's, Kim F. Storm, 2006/08/21
- Re: Nested sit-for's, Stefan Monnier, 2006/08/21
- Re: Nested sit-for's, martin rudalics, 2006/08/21
- Re: Nested sit-for's, Stefan Monnier, 2006/08/21
- Re: Nested sit-for's, Richard Stallman, 2006/08/22
Re: Nested sit-for's,
Chong Yidong <=
RE: Nested sit-for's, Drew Adams, 2006/08/17