mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
When if-let*
or when-let*
was defined, don't do alias for it.
Some package may alias it (or define a enhance version) before the loading of `doom-modeline` Use `eval-and-compile`, allow byte-compiler see through the form, is better than using `with-no-warnings` to suppress it rigidly.
This commit is contained in:
parent
bdbf45e690
commit
c8d2556483
1 changed files with 4 additions and 4 deletions
|
@ -37,11 +37,11 @@
|
||||||
;; Compatibilities
|
;; Compatibilities
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
(eval-and-compile
|
||||||
(unless (>= emacs-major-version 26)
|
(unless (>= emacs-major-version 26)
|
||||||
(with-no-warnings
|
|
||||||
;; Define `if-let*' and `when-let*' variants for 25 users.
|
;; Define `if-let*' and `when-let*' variants for 25 users.
|
||||||
(defalias 'if-let* #'if-let)
|
(unless (fboundp 'if-let*) (defalias 'if-let* #'if-let))
|
||||||
(defalias 'when-let* #'when-let)))
|
(unless (fboundp 'when-let*) (defalias 'when-let* #'when-let))))
|
||||||
|
|
||||||
;; Don’t compact font caches during GC.
|
;; Don’t compact font caches during GC.
|
||||||
(if (eq system-type 'windows-nt)
|
(if (eq system-type 'windows-nt)
|
||||||
|
|
Loading…
Reference in a new issue