Skip to content

Commit 8605901

Browse files
committed
Rename cider-switch-to-repl-on-insert without -p suffix
1 parent 4949c85 commit 8605901

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
### Changes
1313

14-
* * Add new defcustom `cider-switch-to-repl-on-insert-p`: Set to prevent cursor from going to the repl when inserting a form in the repl with the insert-to-repl commands. Replaces obsoleted `cider-switch-to-repl-after-insert-p`
14+
* * Add new defcustom `cider-switch-to-repl-on-insert`: Set to prevent cursor from going to the repl when inserting a form in the repl with the insert-to-repl commands. Replaces obsoleted `cider-switch-to-repl-after-insert-p`
1515
* **(Breaking)** Upgrade to nREPL 0.6.0. This is now the minimum required version.
1616
* **(Breaking)** Upgrade to piggieback 0.4.0. This is now the minimum required version.
1717
* **(Breaking)** Remove `cider.nrepl.middleware.pprint`. All functionality has been replaced by the built-in printing support in nREPL 0.6.

cider-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ With a prefix argument, prompt for function to run instead of -main."
223223
:group 'cider
224224
:package-version '(cider . "0.18.0"))
225225

226-
(defcustom cider-switch-to-repl-on-insert-p t
226+
(defcustom cider-switch-to-repl-on-insert t
227227
"Whether to switch to the repl when inserting a form into the repl."
228228
:type 'boolean
229229
:group 'cider
230230
:package-version '(cider . "0.21.0"))
231231

232232
(define-obsolete-variable-alias
233233
'cider-switch-to-repl-after-insert-p
234-
'cider-switch-to-repl-on-insert-p
234+
'cider-switch-to-repl-on-insert
235235
"0.21.0")
236236

237237
(defcustom cider-invert-insert-eval-p nil
@@ -249,7 +249,7 @@ If EVAL is non-nil the form will also be evaluated. Use
249249
`cider-invert-insert-eval-p' to invert this behavior."
250250
(while (string-match "\\`[ \t\n\r]+\\|[ \t\n\r]+\\'" form)
251251
(setq form (replace-match "" t t form)))
252-
(when cider-switch-to-repl-on-insert-p
252+
(when cider-switch-to-repl-on-insert
253253
(cider-switch-to-repl-buffer))
254254
(let ((repl (cider-current-repl)))
255255
(with-selected-window (or (get-buffer-window repl)

0 commit comments

Comments
 (0)