Just a clarification about the use of font-lock in xtla:

font-lock was designed to highlight source code. In this context, the
text comes from the user, and Emacs has to /guess/ where to put
colors.

The case of most xtla buffers (inventory, ...) is different: The text
displayed comes from Emacs. Emacs knows where to put colors before
displaying the text. No need for a regexp-matching algorithm to do
that.

In the particular case of ewoc lists, all the fontification can be
done from the pretty-printer.

This is more flexible (The same string can be fontified differently if
we want, this is impossible with font-lock), more efficient (no need
for regexp match), more robust (lazy font-locking is sometimes
problematic), ...

I've removed font-lock from the inventory buffer. Here's the
reason ;-)

-- 
Matthieu

Reply via email to