forked from clojure-emacs/clj-refactor.el
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
20 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
;; Benedek Fazekas <[email protected]> | ||
;; Version: 2.4.0 | ||
;; Keywords: convenience, clojure, cider | ||
;; Package-Requires: ((emacs "24.4") (s "1.8.0") (seq "2.19") (yasnippet "0.6.1") (paredit "24") (multiple-cursors "1.2.2") (edn "1.1.2") (inflections "2.3") (hydra "0.13.2")) | ||
;; Package-Requires: ((emacs "24.4") (s "1.8.0") (seq "2.19") (yasnippet "0.6.1") (paredit "24") (multiple-cursors "1.2.2") (parseedn "0.1") (inflections "2.3") (hydra "0.13.2")) | ||
|
||
;; This program is free software; you can redistribute it and/or | ||
;; modify it under the terms of the GNU General Public License | ||
|
@@ -42,7 +42,7 @@ | |
(require 'multiple-cursors-core) | ||
(require 'clojure-mode) | ||
(require 'cider) | ||
(require 'edn) | ||
(require 'parseedn) | ||
(require 'sgml-mode) | ||
(require 'inflections) | ||
(require 'hydra) | ||
|
@@ -1906,7 +1906,7 @@ FEATURE is either :clj or :cljs." | |
cljr--ensure-op-supported | ||
cljr--create-msg | ||
(cljr--call-middleware-sync "namespace-aliases") | ||
edn-read)) | ||
parseedn-read-str)) | ||
|
||
(defun cljr--get-aliases-from-middleware () | ||
(when-let (aliases (cljr--call-middleware-for-namespace-aliases)) | ||
|
@@ -2493,7 +2493,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-promote-function | |
(unless (cljr--empty-buffer-p) | ||
(goto-char (point-min)) | ||
(while (not (cljr--end-of-buffer-p)) | ||
(push (edn-read) occurrences)))) | ||
(push (parseedn-read) occurrences)))) | ||
occurrences)) | ||
|
||
(defun cljr--find-symbol (symbol ns callback) | ||
|
@@ -2547,7 +2547,7 @@ root." | |
(when (= cjr--occurrence-count cljr--num-syms) | ||
(cljr--finalise-find-symbol-buffer cljr--num-syms))) | ||
(when-let (occurrence-data (nrepl-dict-get occurrence-resp "occurrence")) | ||
(let* ((occurrence (edn-read occurrence-data)) | ||
(let* ((occurrence (parseedn-read-str occurrence-data)) | ||
(occurrence-id (format "%s%s" | ||
(cljr--get-valid-filename occurrence) | ||
(gethash :line-beg occurrence)))) | ||
|
@@ -2686,15 +2686,15 @@ Also adds the alias prefix to all occurrences of public symbols in the namespace | |
"used-ns" ns | ||
"file" filename)) | ||
(occurrences (thread-last (cljr--call-middleware-sync request "used-publics") | ||
(edn-read)))) | ||
(parseedn-read-str)))) | ||
(cljr--replace-refer-all-with-alias ns occurrences alias)))) | ||
|
||
(defun cljr--maybe-nses-in-bad-state (response) | ||
(let ((asts-in-bad-state (seq-filter | ||
(lambda (it) | ||
(not (stringp (car (last it))))) | ||
(thread-first (nrepl-dict-get response "ast-statuses") | ||
edn-read | ||
parseedn-read-str | ||
(seq-partition 2))))) | ||
(when (not (= 0 (length asts-in-bad-state))) | ||
(user-error (concat "Some namespaces are in a bad state: " | ||
|
@@ -2873,7 +2873,7 @@ Date. -> Date | |
"session" (cider-current-session)) | ||
(cljr--call-middleware-sync | ||
"candidates"))) | ||
(edn-read candidates))) | ||
(parseedn-read-str candidates))) | ||
|
||
(defun cljr--get-error-value (response) | ||
"Gets the error value from the middleware response. | ||
|
@@ -3082,7 +3082,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-stubs" | |
(format "%s/%s" alias? (cljr--symbol-suffix interface)) | ||
interface) | ||
(format "%s/%s" (cider-current-ns) interface))) | ||
(functions (edn-read (cljr--call-middleware-sync | ||
(functions (parseedn-read-str (cljr--call-middleware-sync | ||
(cljr--create-msg "stubs-for-interface" | ||
"interface" interface) | ||
"functions")))) | ||
|
@@ -3223,7 +3223,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-inline-symbol" | |
"name" symbol-name | ||
"ignore-errors" | ||
(when cljr-ignore-analyzer-errors "true"))) | ||
(response (edn-read (cljr--call-middleware-sync | ||
(response (parseedn-read-str (cljr--call-middleware-sync | ||
extract-definition-request "definition"))) | ||
(definition (gethash :definition response)) | ||
(occurrences (gethash :occurrences response))) | ||
|
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