patch for emacs 24.2