From 8d360474aca6adc04eb048e6bdf22ef083cdb4ed Mon Sep 17 00:00:00 2001 From: Gerry Agbobada <10496163+gagbo@users.noreply.github.com> Date: Sat, 20 Nov 2021 18:32:59 +0100 Subject: [PATCH] docs: add doctor for dev versions of Emacs The message simply test for the "not-a-version-yet" patch number and displays an explanation to prepare users for raised error frequency and having a backup version of Emacs if they do not want to deal with issues. --- core/cli/doctor.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index 0f326c62e..4c5b83769 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -50,6 +50,17 @@ in." (print! (start "Checking your Emacs version...")) (print-group! (cond + ((string= ".50" (substring emacs-version -3)) + (error! "Emacs development version detected (%s)" emacs-version) + ;; There are 2 newlines between each item to fight against + ;; the (fill-region) call in `doom--output-autofill' + (explain! "Doom supports this version, but you are using a development version of Emacs! " + "Be prepared for possibly weekly breakages that\n\n" + "\t- you will have to investigate yourself,\n\n" + "\t- might appear, or be solved, on any Emacs update,\n\n" + "\t- might depend subtly on upstream packages updates\n\n" + "You might need to unpin packages to get a fix for a specific commit of Emacs, " + "and you should be ready to downgrade Emacs if something is just not fixable.")) (EMACS28+ (warn! "Emacs %s detected" emacs-version) (explain! "Doom supports this version, but you are living on the edge! "