fix(lib): autoload format-spec on 27.x

This function wasn't autoloaded until 28, causing void-function errors
if it's used.
This commit is contained in:
Henrik Lissner 2022-06-20 02:36:50 +02:00
parent 343def0b1e
commit 210381bdcf
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

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