only use emacs undo in emacs