branch: externals/compat commit 9042f9f7721300c9e2b833753b7551e983134332 Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@posteo.net>
Fix byte compiler issue related to compat-json-serialize --- compat-28.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compat-28.el b/compat-28.el index 9c5b00c00a..89c24c2f52 100644 --- a/compat-28.el +++ b/compat-28.el @@ -197,7 +197,12 @@ If COUNT is non-nil and a natural number, the function will :min-version "27" (if (or (listp object) (vectorp object)) (apply #'json-insert object args) - (insert (apply #'compat-json-serialize object args)))) + ;; `compat-json-serialize' is not sharp-quoted as the byte + ;; compiled doesn't always know that the function has been + ;; defined, but it will only be used in this function if the + ;; prefixed definition of `json-serialize' (see above) has also + ;; been defined. + (insert (apply 'compat-json-serialize object args)))) (compat-defun json-parse-string (string &rest args) "Handle top-level JSON values."