Emacs multi select fixes

This fixes multi selection actions for various commands with the emacs key handler. 
lastMark can be undefined here, try c-x c-x after refreshing the page.