OK. I managed to claw together enough C to produce the following patch. It works for me and should (a priori - untested) have no knock-on effects. It's probably the most elegant solution and if I would be inclined towards a more generic regexp solution. I presume that GTK+ provides such a library somewhere.
Patch attached. Apply it to msgwindow.c. Tested against the 0.11 release.
Best wishes one and all.
Jon
On 08/15/2007 01:42:16 PM, Jon Senior wrote:
OK. I managed to claw together enough C to produce the following patch. It works for me and should (a priori - untested) have no knock-on effects. It's probably the most elegant solution and if I would be inclined towards a more generic regexp solution. I presume that GTK+ provides such a library somewhere.
It doesn't, but we could probably use Scintilla's or Tagmanager's (CTags') regex engine.
Patch attached. Apply it to msgwindow.c. Tested against the 0.11 release.
Thanks, but I didn't apply it because it was too ugly. I've added a similar solution to SVN but haven't tested it - could you test it please?
Regards, Nick
On 08/15/2007 05:07:21 PM, Nick Treleaven wrote:
On 08/15/2007 01:42:16 PM, Jon Senior wrote:
It's probably the most elegant solution and if I would be inclined towards a more generic regexp solution. I presume that GTK+ provides such a library somewhere.
It doesn't, but we could probably use Scintilla's or Tagmanager's (CTags') regex engine.
I've just found that the newly-released GLib 2.14 has GRegex, but Geany only requires 2.6.
Also, recent releases of CTags use GNU regex (which comes with recent versions of glibc), which should be more powerful than the current tagmanager/regex.c. Perhaps we could update to this, ensuring that it's only built if the system's glibc doesn't have regex support.
Regards, Nick