Ar an ceathrú lá is fiche de mí Bealtaine, scríobh Mats Lidell:
>>>>> Aidan wrote:
Aidan> What does C-h v pre-idle-hook RET give you ...
(font-lock-pre-idle-hook lazy-lock-pre-idle-fontify-windows)
Interesting... Am I getting this right. Problems in these functions
could be leaving the wrong buffer as current and thus ... OOPS!
Yes, exactly. save-excursion is the normal way to switch to another buffer
temporarily, and it switches the buffer back on error; the pre-idle-hook
functions don’t call it, because they need to be fast (they’re called very,
very frequently) and save-excursion involves allocating memory and is
generally not fast.
--
Aidan Kehoe,
http://www.parhasard.net/