From 210381bdcf7bf5def7a8cffb331e8a42b1a7b5f7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 20 Jun 2022 02:36:50 +0200 Subject: [PATCH] fix(lib): autoload format-spec on 27.x This function wasn't autoloaded until 28, causing void-function errors if it's used. --- core/core-lib.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-lib.el b/core/core-lib.el index cb14d7326..5334b6d42 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -781,6 +781,9 @@ testing advice (when combined with `rotate-text'). ;;; Backports (unless EMACS28+ + ;; `format-spec' wasn't autoloaded until 28 + (autoload #'format-spec "format-spec") + (defun ensure-list (object) "Return OBJECT as a list. If OBJECT is already a list, return OBJECT itself. If it's