From 38a3a5095109e86ecf9e5154959f9f37d0365b28 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 4 Jul 2022 18:34:57 +0200 Subject: [PATCH] fix(cli): void-function always `always` was added in Emacs 28 and is unavailable to 27.x users, which is unacceptable while Doom supports 27.x. Fix: #6532 Amend: 74cc541597bd --- core/core-lib.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-lib.el b/core/core-lib.el index 5c967bdf9..8c44627a4 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -805,5 +805,13 @@ not a list, return a one-element list containing OBJECT." object (list object)))) +;; Introduced in Emacs 28.1 +(unless (fboundp 'always) + (defun always (&rest _arguments) + "Do nothing and return t. +This function accepts any number of ARGUMENTS, but ignores them. +Also see `ignore'." + t)) + (provide 'core-lib) ;;; core-lib.el ends here