I did something useful today other than messing with file i/o :-)  The
trunk contains two useful improvements:

1. leoPyRef.leo now contains an active @button node that creates a
button called compare-old-new.  This will highlight differences saved
in 'Recovered Nodes' nodes.

Recall that such nodes have one or more children.  Call these nodes
the **conflict nodes**.  Each conflict node contains two child nodes--
one starting with 'old' and one starting with 'new'.  To use the
button, select a conflict nodes and press the button.  The line-by-
line diffs of the old and new nodes will appear in the console.

2. This morning I fixed a small but annoying buglet.  When deleting a
node, this buglet would cause the newly-selected node to have the same
insert point as the just-deleted node(!!)

This is just exactly the worst possibly buglet to have when using the
clone-find-all command. That's why I had to drop everything and fix
it. Here's the story:

I got several hundred nodes when doing clone-find-all on the
".unitTesting" pattern.  I went to the bottom of the list (goto-last-
sibling), and then search that last node for ".unitTesting" (F3).
That search told me exactly how that single node used .unitTesting.
In most cases, the usage was benign.  For those cases, I simply
deleted the node from the list.  That would select the next node up on
the list.

Bug!! Instead of placing the cursor at the start of the node, Leo put
the cursor where it had been in the just-deleted node!  In many cases,
this was below were the match in the *present* node would be, and I
had to do Ctrl-Home to reset the cursor before doing the F3 to do the
search. That extra keystroke mounted up, and I could miss what I was
looking for if I forgot it.

So the bug had to go.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to