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 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
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 )))
You can’t perform that action at this time.
0 commit comments