Merge pull request #197 from cireu/improve/smart-alias

When `if-let*` or `when-let*` was defined, don't do alias for it.
This commit is contained in:
Vincent Zhang 2019-07-17 01:41:47 -05:00 committed by GitHub
commit 49057a1cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))))
;; Dont compact font caches during GC. ;; Dont compact font caches during GC.
(if (eq system-type 'windows-nt) (if (eq system-type 'windows-nt)