From 1b0cbe842f42148ab5731ba4757445004aa12633 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 31 Dec 2018 17:10:26 +0800 Subject: [PATCH] Fix: compatibility issue with 25. --- doom-modeline.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index c0c3537..7f8b2e5 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -78,6 +78,7 @@ (when (>= emacs-major-version 26) (require 'project)) + ;; ;; Variables ;; @@ -138,9 +139,15 @@ The icons may not be showed correctly in terminal and on Windows.") ;; -;; compatibility +;; Compatibilities ;; +(unless (>= emacs-major-version 26) + (with-no-warnings + ;; Define `if-let*' and `when-let*' variants for 25 users. + (defalias 'if-let* #'if-let) + (defalias 'when-let* #'when-let))) + ;; Don’t compact font caches during GC. (if (eq system-type 'windows-nt) (setq inhibit-compacting-font-caches t)) @@ -155,7 +162,7 @@ It returns a file name which can be used directly as argument of ;; -;; externals +;; Externals ;; (defvar anzu--current-position)