From 3f2c4b80e9adf1c7809e3fe3c299030cbcc7de33 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 10 Jan 2021 05:02:00 -0500 Subject: [PATCH] Add Emacs 26.x warning to doctor checks We'll be dropping support for it in the next few months. --- core/cli/doctor.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index e7e3fc4c5..ae121a175 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -48,9 +48,15 @@ in." ;; REVIEW Refactor me (print! (start "Checking your Emacs version...")) - (when EMACS28+ - (warn! "Emacs %s detected. Doom doesn't support Emacs 28/HEAD. It is unstable and may cause errors." + (cond + (EMACS28+ + (warn! (concat "Emacs %s detected. Doom should support this version, but be prepared for " + "Emacs updates causing breakages.") emacs-version)) + ((= emacs-major-version 26) + (warn! (concat "Emacs %s detected. Doom is dropping Emacs 26.x support very soon. Consider " + "upgrading to Emacs 27.x.") + emacs-version))) (print! (start "Checking for Emacs config conflicts...")) (when (file-exists-p "~/.emacs")