From 518f33aadf955a55421763aa61fb18a8db4052c9 Mon Sep 17 00:00:00 2001 From: deb0ch Date: Wed, 11 Jan 2017 12:04:08 +0100 Subject: [PATCH] throw a real error if emacs version is too old Many people (including me) were confused when trying to install Spacemacs on an outdated Emacs. A message was issued, but honestly nobody thinks of going to see the *Messages* buffer when a perfeclty normal vanilla Emacs starts up, especially not beginners. This way, an error is visible and users can take corrective actions. --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 41fc9be41..e32e5c41c 100644 --- a/init.el +++ b/init.el @@ -20,9 +20,9 @@ (defconst spacemacs-emacs-min-version "24.4" "Minimal version of Emacs.") (if (not (version<= spacemacs-emacs-min-version emacs-version)) - (message (concat "Your version of Emacs (%s) is too old. " - "Spacemacs requires Emacs version %s or above.") - emacs-version spacemacs-emacs-min-version) + (error (concat "Your version of Emacs (%s) is too old. " + "Spacemacs requires Emacs version %s or above.") + emacs-version spacemacs-emacs-min-version) (load-file (concat (file-name-directory load-file-name) "core/core-load-paths.el")) (require 'core-spacemacs)