In examples.Sample Outline 2, position the bar cursor on "Subhead 1.1." Now execute the following line three times:
op.hoist ()
» true
Notice the outline window's display. Now execute:
op.deHoist ()
» true
As you can see, the last op.hoist operation, which made "Subhead 1.1.1.1.1" the only heading in the window, is undone. Execute the same line again:
op.deHoist ()
» true
The second hoist operation has now been undone. One last execution of the line:
op.deHoist ()
» true
and the outline should now be back to its original display. Now execute:
op.deHoist ()
» false // The outline display doesn't change.