little patch for emacs 24

it just work after this patch, maybe there has a better patch.