Fix: compatibility issue with 25.

This commit is contained in:
Vincent Zhang 2018-12-31 17:10:26 +08:00
parent 3d1490d6e6
commit 1b0cbe842f

View file

@ -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)))
;; Dont 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)