On Sunday, May 3, 2020 at 4:11:48 PM UTC-5, vitalije wrote:

in this prototype all those outline operations are made at the same time in 
> both tree widget data-model and in v-nodes. This eliminates need for 
> synchronization between these two models. No need for c.redraw_after..., 
> c.redraw, c.redraw_later,... No need for several locks, for checking if the 
> selected position is visible or not, is it outside hoist/chapter,...
>

I'm not sure what I think about this plan. How do you propose to handle 
outline operations initiated from scripts?

In the "real" Leo, scripts can update the outline (both model and view) in 
one of two ways:

1. Call methods such as c.clone. These Commands methods call c.redraw 
"automatically".

2. Call methods, such as p.clone. These Position methods don't call 
c.redraw. The script must then c.redraw explicitly.

I don't mind if c.redraw becomes a do-nothing. I just want to know how it's 
going to work.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3a32ff64-163a-4874-8acc-241c7b948443%40googlegroups.com.

Reply via email to