Make compatible with emacs23