make emacs mark a property of session
Fix CTRL-a to work as expected in emacs mode; restore former values of actualLineStart and selectLongWords when switching keyboard or session