Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed quoting to double quote outside, escaped double quote inside … #2657

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions cider.el
Expand Up @@ -157,7 +157,7 @@ it using rlwrap."
:package-version '(cider . "0.17.0"))

(defcustom cider-clojure-cli-parameters
"-m nrepl.cmdline --middleware '%s'"
"-m nrepl.cmdline --middleware \"%s\""
"Params passed to clojure to start an nREPL server via `cider-jack-in'.
This is evaluated using `format', with the first argument being the Clojure
vector of middleware variables as a string."
Expand Down Expand Up @@ -362,7 +362,7 @@ Throws an error if PROJECT-TYPE is unknown."
(concat
"["
(mapconcat
(apply-partially #'format "\"%s\"")
(apply-partially #'format "\\\"%s\\\"")
(cider-jack-in-normalized-nrepl-middlewares)
", ")
"]")))
Expand Down Expand Up @@ -560,11 +560,11 @@ Does so by concatenating GLOBAL-OPTS, DEPENDENCIES finally PARAMS."
(concat
global-opts
(unless (seq-empty-p global-opts) " ")
"-Sdeps '{:deps {"
"-Sdeps \"{:deps {"
(mapconcat #'identity
(seq-map (lambda (dep) (format "%s {:mvn/version \"%s\"}" (car dep) (cadr dep))) dependencies)
(seq-map (lambda (dep) (format "%s {:mvn/version \\\"%s\\\"}" (car dep) (cadr dep))) dependencies)
" ")
"}}' "
"}}\" "
params)))

(defun cider-shadow-cljs-jack-in-dependencies (global-opts params dependencies)
Expand Down