emacs: fixed mac undo/redo