Fine tune how state transitions are recorded.
Merge branch 'master' of github.com:candera/emacs