Mode automaton and mode aspect
We discuss the possibility of using automata for mode aspects.
It seems that mode automata are very similar to this, so we should take
a look before implementing anything
(from redmine: issue id 3305, created on 2018-03-05, closed on 2019-07-02)