]> git.eshelyaron.com Git - emacs.git/commit
(json-pretty-print): Rework a bit
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Feb 2025 03:27:08 +0000 (22:27 -0500)
committerEshel Yaron <me@eshelyaron.com>
Thu, 20 Feb 2025 21:42:59 +0000 (22:42 +0100)
commit18247b506e166b11d0b8738d3f379a6a1bf32bfe
treea278e852ce3fc1c113ee6d60c33bed21fb1f1c18
parent42747393daba0704e119c29c446b3ce9659ccdad
(json-pretty-print): Rework a bit

* lisp/json.el (json-pretty-print): Call 'replace-buffer-contents'
separately for each json object rather than once at the end, so
its work is easier.  Use 'json--print' rather than 'json-encode' so as
to avoid creating yet more temp buffers.

(cherry picked from commit 9143c18ae4752cef8465579dcd713db2032ab045)
lisp/json.el