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: 74cc541597
This commit is contained in:
Henrik Lissner 2022-07-04 18:34:57 +02:00
parent 6cb2c6e962
commit 38a3a50951
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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