Skip to content

Commit 77918c5

Browse files
Fix [#2026] Mark many custom variables as safe
1 parent b4a3d24 commit 77918c5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* [#1945](https://github.com/clojure-emacs/cider/pull/1945): Start nREPL servers bound to `::` by default using `cider-jack-in`.
3535
* Renamed `cider-prompt-save-file-on-load` to `cider-save-file-on-load` and adjust its supported values accordingly (the default now is `'prompt` and `'always-save` is now simply `t`).
3636
* [#2014](https://github.com/clojure-emacs/cider/pull/2014): Unify the format for `forms-str` and `arglists-str`.
37+
* [#2027](https://github.com/clojure-emacs/cider/pull/2027): Mark many custom variables relating to `cider-jack-in` as safe.
3738

3839
### Bugs Fixed
3940

cider.el

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,15 @@ version from the CIDER package or library.")
108108
nil
109109
"Command global options used to execute Leiningen (e.g.: -o for offline)."
110110
:type 'string
111-
:group 'cider)
111+
:group 'cider
112+
:safe #'stringp)
112113

113114
(defcustom cider-lein-parameters
114115
"repl :headless :host ::"
115116
"Params passed to Leiningen to start an nREPL server via `cider-jack-in'."
116117
:type 'string
117-
:group 'cider)
118+
:group 'cider
119+
:safe #'stringp)
118120

119121
(defcustom cider-boot-command
120122
"boot"
@@ -128,13 +130,15 @@ version from the CIDER package or library.")
128130
"Command global options used to execute Boot (e.g.: -c for checkouts)."
129131
:type 'string
130132
:group 'cider
133+
:safe #'stringp
131134
:package-version '(cider . "0.14.0"))
132135

133136
(defcustom cider-boot-parameters
134137
"repl -s -H :: wait"
135138
"Params passed to boot to start an nREPL server via `cider-jack-in'."
136139
:type 'string
137140
:group 'cider
141+
:safe #'stringp
138142
:package-version '(cider . "0.9.0"))
139143

140144
(defcustom cider-gradle-command
@@ -149,13 +153,15 @@ version from the CIDER package or library.")
149153
"Command line options used to execute Gradle (e.g.: -m for dry run)."
150154
:type 'string
151155
:group 'cider
156+
:safe #'stringp
152157
:package-version '(cider . "0.14.0"))
153158

154159
(defcustom cider-gradle-parameters
155160
"clojureRepl"
156161
"Params passed to gradle to start an nREPL server via `cider-jack-in'."
157162
:type 'string
158163
:group 'cider
164+
:safe #'stringp
159165
:package-version '(cider . "0.10.0"))
160166

161167
(defcustom cider-default-repl-command
@@ -165,6 +171,7 @@ This value will only be consulted when no identifying file types, i.e.
165171
project.clj for leiningen or build.boot for boot, could be found."
166172
:type 'string
167173
:group 'cider
174+
:safe #'stringp
168175
:package-version '(cider . "0.9.0"))
169176

170177
(defcustom cider-preferred-build-tool
@@ -181,6 +188,7 @@ command when there is no ambiguity."
181188
(const "gradle")
182189
(const :tag "Always ask" nil))
183190
:group 'cider
191+
:safe #'stringp
184192
:package-version '(cider . "0.13.0"))
185193

186194
(defcustom cider-allow-jack-in-without-project 'warn
@@ -192,6 +200,7 @@ When set to nil `cider-jack-in' will fail."
192200
(const 'warn)
193201
(const :tag "never" nil))
194202
:group 'cider
203+
:safe #'stringp
195204
:package-version '(cider . "0.15.0"))
196205

197206
(defcustom cider-known-endpoints nil
@@ -224,6 +233,7 @@ This variable is used by `cider-connect'."
224233
(defcustom cider-inject-dependencies-at-jack-in t
225234
"When nil, do not inject repl dependencies (most likely nREPL middlewares) at `cider-jack-in' time."
226235
:type 'boolean
236+
:safe #'stringp
227237
:version '(cider . "0.11.0"))
228238

229239
(defcustom cider-offer-to-open-cljs-app-in-browser t

0 commit comments

Comments
 (0)