fix for emacs version 24.3.1 or above

Signed-off-by: coldnew <coldnew.tw@gmail.com>