I do understand the difference between a marked (red) node and a dirty (black) node.

>Marking nodes as dirty happens automatically.

I guess I wasn't being clear.

When I toggle the mark (red) in a node, it's flagged as dirty, and the overall file is flagged as changed. Whether the state changes from marked to unmarked, it still gets flagged as dirty. This works as I would expect.

When I execute the unmark-all command on the entire outline, any nodes changed from marked to unmarked are flagged as dirty and the overall file is flagged as changed. This also works as I would expect.

When I execute the unmark-tree script, any nodes changed from marked to unmarked are NOT flagged as dirty, and neither is the overall file flagged as changed.

If "marking nodes as dirty happens automatically", then what is the reason unmark-tree isn't "automatically" flagging the nodes as dirty, when unmark-all DOES, and toggling a single node DOES?

-------- Original Message --------
Subject: Re: Unmark-all command [was: Q: Outline icon has red line that won't go away]
From: Edward K. Ream <[email protected]>
To: [email protected]
Date: Saturday, December 04, 2010 8:19:34 AM

On Wed, Dec 1, 2010 at 1:39 AM, taa, Leo Newbie<[email protected]>  wrote:
Is this code supposed to automatically mark the nodes as dirty, and the
overall file as being changed?

No.  Marking a node is distinct from marking it as changed (dirty).
Marking nodes as dirty happens automatically.  You can see dirty nodes
by the black border around their icon box.

Marking a node shows a red vertical bar in the icon box.

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