Backwards compatibility for older versions of emacs