emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat 9042f9f772 2/3: Fix byte compiler issue related


From: ELPA Syncer
Subject: [elpa] externals/compat 9042f9f772 2/3: Fix byte compiler issue related to compat-json-serialize
Date: Mon, 11 Jul 2022 06:57:24 -0400 (EDT)

branch: externals/compat
commit 9042f9f7721300c9e2b833753b7551e983134332
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]