On Thu, Sep 25, 2008 at 6:43 PM, Corey O'Connor <[EMAIL PROTECTED]> wrote:

> Since the vanilla GTK frontend is almost usable I'm hoping there is a
> simple optimization to replaceTagsIn which would satisfy me for the
> time being. What I'm thinking is that the styleRanges can be "merged"
> into longer spans. EG the set of ranges:
> (989,Attributes {foreground = RGB 128 0 128,...}),(990,Attributes
> {foreground = RGB 128 0 128,...),(991,Attributes {foreground = RGB 128
> 0 128,...}), etc
>
> Could be merged into just:
> (989,Attributes {foreground = RGB 128 0 128,...}),(991,Attributes
> {foreground = RGB 128 0 128,...}), etc

I'm a bit pessimistic about this. Besides, replacing the tags in the
whole buffer is the
only way to provide full functionality, because changes in syntax
highlighting are non-local.

Unrelated: I'm not sure I mentioned clearly that GError should enclose
all pango calls as so:

>>> catchGError
>>>   (do ...
>>>       ...)
>>>   (\(GError dom code msg) -> fail msg)

Cheers,
JP.

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to