Bug fix: adjust substitution substring regexp in cm-substitution-string
Initial support for follow changes mode.
Revert changes to cm-{beginning|end}-of-*

Revert acb4807, b1cac22 and 1838e20
Improve follow changes mode.

This involved changes to several other parts of the code.