Ensure (if|when)-let* are available to the byte-compiler

This fixes void function errors in earlier versions of Emacs while
byte-compiling Doom.
This commit is contained in:
Henrik Lissner 2018-03-02 17:42:19 -05:00
parent 5c9ef4ee38
commit 01f9ca9e67
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -5,10 +5,11 @@
(require 'cl-lib)
(require 'map))
(when (version< emacs-version "26")
(with-no-warnings
(defalias 'if-let* #'if-let)
(defalias 'when-let* #'when-let)))
(eval-and-compile
(when (version< emacs-version "26")
(with-no-warnings
(defalias 'if-let* #'if-let)
(defalias 'when-let* #'when-let))))
;;