Emacs 24 compatibility.