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:11:53 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> It could be that the new trigger time has somehow passed by
> before restarting the idle timer.  Just to rule that out,
> could you try with delay = 2 instead of 0.

I tried a lot of these before without any success.

>>>      (let ((idle (current-idle-time)))
>>>        (when idle
>>>          (run-with-idle-timer (+ idle (max delay 0.1))
>>>                                    nil #'jit-lock-stealth-fontify)))
>>>
>>
>>make that:
>>
>>          (let ((idle (current-idle-time)))
>>            (setq jit-lock-stealth-repeat-timer
>>                 (and (not idle)
>>                      (run-with-idle-timer (+ idle (max delay 0.1))
>>                                           nil #'jit-lock-stealth-fontify))))
>
>
> Brain damange -- make that:
>
>      (let ((idle (current-idle-time)))
>         (setq jit-lock-stealth-repeat-timer
>              (and idle
>                  (run-with-idle-timer (+ idle (max delay 0.1))
>                                        nil #'jit-lock-stealth-fontify))))
>

I must have lost you, all your suggestions set that timer to nil.

Did you try Chong's patch?





reply via email to

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