Skip to content

Commit

Permalink
Merge pull request #42 from thisch/cllib
Browse files Browse the repository at this point in the history
Replace deprecated 'cl package by 'cl-lib
  • Loading branch information
gongo authored Sep 5, 2022
2 parents 8eb6668 + 7171915 commit 2bdf2a2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions json-reformat.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

;; Author: Wataru MIYAGUNI <[email protected]>
;; URL: https://github.com/gongo/json-reformat
;; Package-Requires: ((emacs "24.3"))
;; Version: 0.0.6
;; Keywords: json

Expand Down Expand Up @@ -47,7 +48,7 @@
;;; Code:

(require 'json)
(eval-when-compile (require 'cl))
(eval-when-compile (require 'cl-lib))

(unless (require 'subr-x nil t)
;; built-in subr-x from 24.4
Expand Down Expand Up @@ -126,11 +127,11 @@ Else t:
(concat "[\n"
(mapconcat
'identity
(loop for v across val
collect (concat
(json-reformat:indent (1+ level))
(json-reformat:print-node v (1+ level))
))
(cl-loop for v across val
collect (concat
(json-reformat:indent (1+ level))
(json-reformat:print-node v (1+ level))
))
(concat ",\n"))
"\n" (json-reformat:indent level) "]"
)))
Expand Down

0 comments on commit 2bdf2a2

Please sign in to comment.