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

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

[elpa] externals/compat 295a439f99 4/5: Ensure that json-insert can use


From: ELPA Syncer
Subject: [elpa] externals/compat 295a439f99 4/5: Ensure that json-insert can use json-serialize
Date: Sat, 5 Mar 2022 08:57:26 -0500 (EST)

branch: externals/compat
commit 295a439f99ea365cdd3749b01bbd8c857b383041
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Ensure that json-insert can use json-serialize
---
 compat-27.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compat-27.el b/compat-27.el
index 81b205ea87..2106d6924e 100644
--- a/compat-27.el
+++ b/compat-27.el
@@ -161,6 +161,7 @@ any JSON false values."
               (equal (json-parse-string "[]") nil))
           (json-unavailable t)
           (void-function t))
+  :realname compat--json-serialize
   (require 'json)
   (let ((json-false (or (plist-get args :false-object) :false))
         (json-null (or (plist-get args :null-object) :null)))
@@ -176,7 +177,7 @@ OBJECT."
               (equal (json-parse-string "[]") nil))
           (json-unavailable t)
           (void-function t))
-  (insert (apply #'json-serialize object args)))
+  (insert (apply #'compat--json-serialize object args)))
 
 (compat-defun json-parse-string (string &rest args)
   "Parse the JSON STRING into a Lisp object.



reply via email to

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