Fix bug where <RET> in insert mode stopped autoindenting, probably due to Emacs 24.4 update.