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:
parent
5c9ef4ee38
commit
01f9ca9e67
1 changed files with 5 additions and 4 deletions
|
@ -5,10 +5,11 @@
|
||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
(require 'map))
|
(require 'map))
|
||||||
|
|
||||||
(when (version< emacs-version "26")
|
(eval-and-compile
|
||||||
(with-no-warnings
|
(when (version< emacs-version "26")
|
||||||
(defalias 'if-let* #'if-let)
|
(with-no-warnings
|
||||||
(defalias 'when-let* #'when-let)))
|
(defalias 'if-let* #'if-let)
|
||||||
|
(defalias 'when-let* #'when-let))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue