Add compatibility aliasing for if-let/when-let

This commit is contained in:
James Nguyen 2018-09-12 19:08:18 -07:00
parent 0882cd7b2d
commit c6fe5936b8
1 changed files with 15 additions and 0 deletions

View File

@ -63,6 +63,21 @@ See https://github.com/emacs-evil/evil-collection/issues/60 for more details."))
See https://github.com/emacs-evil/evil-collection/issues/60 for more details.")
(require 'evil-integration))
;; Compatibility
(eval-and-compile
(with-no-warnings
(if (version< emacs-version "26")
(progn
(defalias 'evil-collection-if-let* #'if-let)
(defalias 'evil-collection-when-let* #'when-let)
(function-put #'evil-collection-if-let* 'lisp-indent-function 2)
(function-put #'evil-collection-when-let* 'lisp-indent-function 1))
(defalias 'evil-collection-if-let* #'if-let*)
(defalias 'evil-collection-when-let* #'when-let*))))
;; Compatibility
(declare-function org-table-align "org-table.el" nil)
(defgroup evil-collection nil