spamfilteraccount@gmail.com wrote:Stefan Monnier wrote:Actually, font-locking *is* implemented in C. The elisp part usually takesa negligible amount of time. The problem start appearing when thefunctionality of the C code is not sufficient and you start trying to parsethe code in elisp, which is slow.Good to know. I thought font-lock was implemented in elisp and didn'tbother to check.Precisely speaking...The code that determines what rules are used to font-lock text is inElisp.The regexp engine that finds the things to be font-locked is in thecore of Emacs.The colourisation is implemented in the Emacs core.