From 940cb8c3310d1eaa597241ef26f686ae99f7e14e Mon Sep 17 00:00:00 2001 From: Avram Colak Date: Wed, 1 Apr 2015 17:46:43 +1300 Subject: [PATCH] Don't unecessarily assume responsibility for checking SLIME version. Instead rely on SLIME. --- lisp/slimerc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/slimerc.el b/lisp/slimerc.el index 47575ba..44633e7 100644 --- a/lisp/slimerc.el +++ b/lisp/slimerc.el @@ -5,8 +5,9 @@ ;;; SLIME signals an error on load when loaded with a sufficiently old ;;; version of Emacs, which stops the rest of Emacs' ;;; initialization. Failing silently is preferrable. -(when (and (> emacs-major-version 22) - (require 'slime nil t)) +(when (condition-case nil + (require 'slime nil t) + (error nil)) ;; Use M-x slime with a negative prefix to choose between ;; implementations i.e. M-- M-x slime. -- 2.11.4.GIT