Skip to content

Commit 6ffcdbc

Browse files
author
Bozhidar Batsov
committed
Rename cider command to cider-connect
The new name is more descriptive and symmetric to SLIME's slime-connect.
1 parent 8ae510a commit 6ffcdbc

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ visually distinctive from `cider-repl-output-face` (used for STDOUT output).
2727
support for tramp, so tramp paths do not get used in compiled debug
2828
information. `cider-jump` still uses tramp filenames to find
2929
definitions if used in a buffer associated with a tramp file.
30+
* Renamed `cider` command to `cider-connect`.
3031

3132
### Bugs fixed
3233

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ Alternatively you can start nREPL either manually or by the facilities provided
404404
project build tool (Maven, etc).
405405

406406
After you get your nREPL server running go back to Emacs.
407-
Typing there <kbd>M-x cider</kbd> will allow you to connect to the running nREPL server.
407+
Typing there <kbd>M-x cider-connect</kbd> will allow you to connect to the running nREPL server.
408408

409409
### Using the cider minor mode
410410

@@ -441,7 +441,7 @@ enforcement of this limit can then be toggled using:
441441
* <kbd>M-x cider</kbd>: Connect to an already-running nREPL server.
442442

443443
While you're in `clojure-mode`, `cider-jack-in` is bound for
444-
convenience to <kbd>C-c M-j</kbd> and `cider` is bound to <kbd>C-c
444+
convenience to <kbd>C-c M-j</kbd> and `cider-connect` is bound to <kbd>C-c
445445
M-c</kbd>.
446446

447447
### cider-mode

cider.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ The returned endpoint has the label removed."
133133
selected-endpoint)))
134134

135135
;;;###autoload
136-
(defun cider (host port)
136+
(defun cider-connect (host port)
137137
"Connect to an nREPL server identified by HOST and PORT."
138138
(interactive (let ((known-endpoint (when cider-known-endpoints
139139
(cider-select-known-endpoint))))
@@ -145,11 +145,15 @@ The returned endpoint has the label removed."
145145
(when (nrepl-check-for-repl-buffer `(,host ,port) nil)
146146
(nrepl-connect host port)))
147147

148+
(define-obsolete-function-alias
149+
'cider
150+
'cider-connect)
151+
148152
;;;###autoload
149153
(eval-after-load 'clojure-mode
150154
'(progn
151155
(define-key clojure-mode-map (kbd "C-c M-j") 'cider-jack-in)
152-
(define-key clojure-mode-map (kbd "C-c M-c") 'cider)))
156+
(define-key clojure-mode-map (kbd "C-c M-c") 'cider-connect)))
153157

154158
(provide 'cider)
155159

0 commit comments

Comments
 (0)