bugfix for ^x^e + emacs

sorry I should have sent a diff :)