Fix Shift-Up issue in Emacs