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 '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))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue