Support old emacs(<= 24.2)

Please check this patch.