This is about a bug in TSE's macro language.
It started with me wanting to redisplay sections of text in the edit window in unique colors.
Temporarily setting a unique color is done with the SetColorTableValue() command in GUI and Linux TSE.
If done from the _AFTER_COMMAND_ hook it works, but sometimes gets overwritten by TSE itself.
If done from the _IDLE_ hook it works, but with a delay waiting for the editor to get idle.
If done from the _AFTER_UPDATE_DISPLAY_ hook, it (re)displays text immediately without getting overwritten, but in TSE's old colors!
The latter seems a bug to me.
Why would SetColorTableValue() not work when called from _AFTER_UPDATE_DISPLAY_?
I created a test macro that reproduces the bug:
https://ecarlo.nl/tse/DemosAndTests.html#Test_ColorTableValue_AFTER_UPDATE_DISPLAY
Carlo