Skip to content

Commit 2bdf2a2

Browse files
authored
Merge pull request #42 from thisch/cllib
Replace deprecated 'cl package by 'cl-lib
2 parents 8eb6668 + 7171915 commit 2bdf2a2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

json-reformat.el

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

@@ -47,7 +48,7 @@
4748
;;; Code:
4849

4950
(require 'json)
50-
(eval-when-compile (require 'cl))
51+
(eval-when-compile (require 'cl-lib))
5152

5253
(unless (require 'subr-x nil t)
5354
;; built-in subr-x from 24.4
@@ -126,11 +127,11 @@ Else t:
126127
(concat "[\n"
127128
(mapconcat
128129
'identity
129-
(loop for v across val
130-
collect (concat
131-
(json-reformat:indent (1+ level))
132-
(json-reformat:print-node v (1+ level))
133-
))
130+
(cl-loop for v across val
131+
collect (concat
132+
(json-reformat:indent (1+ level))
133+
(json-reformat:print-node v (1+ level))
134+
))
134135
(concat ",\n"))
135136
"\n" (json-reformat:indent level) "]"
136137
)))

0 commit comments

Comments
 (0)