emacs-devel
[Top][All Lists]
Advanced

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

Re: jit-lock timer etc.


From: martin rudalics
Subject: Re: jit-lock timer etc.
Date: Thu, 24 Aug 2006 20:09:08 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> There were a few mistakes in the code I posted, incurred during
> cutting and pasting.  Please look at this patch instead; and sorry for
> the noise.

It works!  Thanks for finding the problem and solving it!


BTW, what do you think about

      ;; Cancel timer for repeated invocations.
      (when (and (not repeat) (timerp jit-lock-stealth-repeat-timer))
        (cancel-timer jit-lock-stealth-repeat-timer))

and

        (if repeat
            (let ((cell (memq jit-lock-stealth-repeat-timer timer-idle-list)))
              (timer-set-idle-time
               jit-lock-stealth-repeat-timer (current-idle-time))
              (timer-inc-time jit-lock-stealth-repeat-timer delay)
              (timer-activate-when-idle jit-lock-stealth-repeat-timer t cell))

We currently allocate a new timer for every chunk we fontify stealthily
and for every buffer in `jit-lock-stealth-buffers'.  Is it worth the
trouble?





reply via email to

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