From 653bd99b77191a32e3331b8bbfcadf3580f35eae Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 1 Jun 2019 00:13:47 -0400 Subject: [PATCH] Polyfill kill-current-buffer in Emacs<=25.3 #1446 kill-current-buffer wasn't introduced until Emacs 26. --- core/core.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/core.el b/core/core.el index 5f76032eb..932f312aa 100644 --- a/core/core.el +++ b/core/core.el @@ -536,6 +536,8 @@ to least)." (require 'cl-lib) (unless EMACS26+ (with-no-warnings + ;; `kill-current-buffer' was introduced in Emacs 26 + (defalias 'kill-current-buffer #'kill-this-buffer) ;; if-let and when-let were moved to (if|when)-let* in Emacs 26+ so we ;; alias them for 25 users. (defalias 'if-let* #'if-let)