On Saturday, November 9, 2024 at 9:52:02 AM UTC-6 Edward K. Ream wrote:

> I removed all the hacks that partially ruined the legacy code.


In other words, I am *already* eating my own dog food (in the PRs branch). 
It's easy to ignore the remaining coloring glitch. That's good news. There 
will be little risk in merging the PR into "devel."


*Other notes*


In retrospect, yesterday's study was possible at any time in the 
colorizer's history. Oh well, mistakes happen. I have some theories about 
why I never did the obvious study, but I'm happy to move on.


Aha! The colorizer must be, in a limited sense, stateless. True, _recolor 
uses and manipulates the state of the line being colorized. However, it is 
*futile 
*to maintain any data *between *calls to _recolor. I shall remove all such 
ivars.


Edward


P. S. Heh. The Aha has revealed an unimportant edge case.


After an @nocolor directive pauses coloring, what language should be in 
effect after a later @color directive? It could be either:


- the previously active color, or

- the default color that applies at the start of each node.


It will be amusing to see what the legacy code does, but I shall not make 
any changes.


EKR

-- 
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 visit 
https://groups.google.com/d/msgid/leo-editor/9b078864-d875-4d78-82c0-b86838d171dcn%40googlegroups.com.

Reply via email to