File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
; ; Author: Wataru MIYAGUNI <[email protected] >
4
4
; ; URL: https://github.com/gongo/json-reformat
5
+ ; ; Package-Requires: ((emacs "24.3"))
5
6
; ; Version: 0.0.6
6
7
; ; Keywords: json
7
8
47
48
; ;; Code:
48
49
49
50
(require 'json )
50
- (eval-when-compile (require 'cl ))
51
+ (eval-when-compile (require 'cl-lib ))
51
52
52
53
(unless (require 'subr-x nil t )
53
54
; ; built-in subr-x from 24.4
@@ -126,11 +127,11 @@ Else t:
126
127
(concat " [\n "
127
128
(mapconcat
128
129
'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
+ ))
134
135
(concat " ,\n " ))
135
136
" \n " (json-reformat:indent level) " ]"
136
137
)))
You can’t perform that action at this time.
0 commit comments