fix emacs compatibility