fix a emacs auto call function issue