Thanks for reviewing my code if you feel like it. Also, you can easily test it with the attached Leo file which provides 2 @buttons that try to change the headlines in the outline. One does it one by one, the other does it all at once (using the new proposed undo helpers):