When adding a new parsetree to the tree editor window (visparse) will
always set the focus to the first parsetree in the window. This is
most annoying when a big number of trees is added via ccc-show-conflicts
(based on xcdgclient) and you'd meenwhile like to watch at some of those
trees.
Comments
::showparse{} now switches to the first new tree. Is this the way you want it?
OK, the desired behaviour has now been specified like this:
when a parse is added to a window, its view switches to the first newly added parse
however, if the user switched the view since the last parse was added, the view is left unchanged
This means that you can either lean back and watch trees being added to a window, or you can click on one of them and keep seeing it even if others are still being added.
So TreeEditor must receive a "being updated flag" that is set when showparse starts, reset when an X event is received, and that showparse must check before altering the view programmatically.