...
> The reason I was thinking this would be useful is that I create a
function to do something...Then I want to try
this a different way, but so I create a copy of the node, tell Leo to
ignore the first one, and then change the content of the function in the
second.
Jake's suggestion seems like the best approach. It's best not to try to be overly clever.
When I start on a major refactoring I often define a constant in leoGlobals.py, say NEW. Then I refactor with tests on g.NEW.
This seems like the full answer to your original question. However, I'd like mention a completely different way of "customizing" nodes. The rst3 command supports
filters that allow scripts to chose
which parts of a node (and its subtree) to include. This feature gives the effect of the often-requested "half clone" feature. See
this post and the example_rst_filter plugin.
Edward