On Mon, Sep 23, 2013 at 8:19 AM, Edward K. Ream <[email protected]> wrote:
A good start, but the script does not handle undo properly. I'll attempt > an improvement. > Rev 6030 adds the new insert-node-before command. It's a fairly straightforward mod of the insert-node command, but there are two complications: 1. It properly handles inserts of top-level nodes. 2. It gives a warning message and does nothing if one attempts to insert a node before the first node of a hoisted outline. Surprisingly, the undo code seems to work using the same undo helpers used by the insert-node command. Undo happens properly in all the situations I've tested, but bugs may lurk. I did add a new unit test for insert-node-before that performs a rudimentary undo test. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
