Add compatibility aliasing for if-let/when-let
This commit is contained in:
parent
0882cd7b2d
commit
c6fe5936b8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue