Added catches for old versions of emacs