mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user