-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from thisch/cllib
Replace deprecated 'cl package by 'cl-lib
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -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) "]" | ||
))) | ||
|