make text moving work in Emacs 24.3 as well