Stephen J. Turnbull wrote:
Raymond Toy writes:
> I obviously don't know how this all works,
That said ...
> but looking at the comments before font-lock-fontify-buffer in
> font-lock.el seems to indicate I could change change
> font-lock-fontify-region-function to some new function that would
> extend the region as needed and then call the old
... you're a very brave man. :-) Actually, it's probably not that
horrible, but you do need to figure out how to detect that extending
the region needs to be done.
Fortunately, slime already provides a function for that. Just need to
figure out how to get that function called and run the real font-lock
function appropriately on the new region. And, most importantly, how to
hook it into font-lock, per the comments. I, frankly, can't really
quite parse the comments, but it looks possible.
This is all kind of fun, but in many ways, it's rather tedious. I could
just keep using the older version of slime that was working fine, but
then I won't ever get bug fixes or cool new features. Or I could switch
to emacs, but decades of cruft in my .xemacs config would have to be
redone, which is not fun. Or try to fix these things.
XEmacs-Beta mailing list