Minor fix for compatibility.

This commit is contained in:
Vincent Zhang 2018-08-28 23:54:03 +08:00
parent 2ef9b88d4d
commit be0461a68c

View file

@ -63,12 +63,18 @@
(require 'shrink-path) (require 'shrink-path)
;;
;; Compatibility
;;
(unless (>= emacs-major-version 26) (unless (>= emacs-major-version 26)
(with-no-warnings (with-no-warnings
;; if-let and when-let are deprecated in Emacs 26+ in favor of their ;; if-let and when-let are deprecated in Emacs 26+ in favor of their
;; if-let* variants, so we alias them for 25 users. ;; if-let* variants, so we alias them for 25 users.
(defalias 'if-let* #'if-let)
(defalias 'when-let* #'when-let))) (defalias 'when-let* #'when-let)))
;; ;;
;; Variables ;; Variables
;; ;;