@@ -85,15 +85,6 @@ entirely."
85
85
`cider-switch-to-last-clojure-buffer' uses this variable to jump
86
86
back to last Clojure source buffer." )
87
87
88
- (defcustom cider-switch-to-repl-command 'cider-switch-to-relevant-repl-buffer
89
- " Select the command to be invoked when switching-to-repl.
90
- The default option is `cider-switch-to-relevant-repl-buffer' . If
91
- you'd like to not use smart matching of repl buffer based on
92
- project directory, you can assign it to `cider-switch-to-current-repl-buffer'
93
- which will use the default REPL connection."
94
- :type 'symbol
95
- :group 'cider )
96
-
97
88
(defun cider-remember-clojure-buffer (buffer )
98
89
" Try to remember the BUFFER from which the user jumps.
99
90
The BUFFER needs to be a Clojure buffer and current major mode needs
@@ -105,11 +96,6 @@ to jump back to the last Clojure source buffer."
105
96
(derived-mode-p 'cider-repl-mode ))
106
97
(setq cider-last-clojure-buffer buffer)))
107
98
108
- (defun cider-switch-to-repl-buffer (&optional arg )
109
- " Invoke `cider-switch-to-repl-command' ."
110
- (interactive " P" )
111
- (funcall cider-switch-to-repl-command arg))
112
-
113
99
(defun cider--switch-to-repl-buffer (repl-buffer &optional set-namespace )
114
100
" Select the REPL-BUFFER, when possible in an existing window.
115
101
@@ -131,22 +117,7 @@ that of the namespace in the Clojure source buffer."
131
117
(cider-remember-clojure-buffer buffer)
132
118
(goto-char (point-max ))))
133
119
134
- (defun cider-switch-to-default-repl-buffer (&optional set-namespace )
135
- " Select the default REPL buffer, when possible in an existing window.
136
-
137
- Hint: You can use `display-buffer-reuse-frames' and
138
- `special-display-buffer-names' to customize the frame in which
139
- the buffer should appear.
140
-
141
- With a prefix argument SET-NAMESPACE, sets the namespace in the REPL buffer to
142
- that of the namespace in the Clojure source buffer."
143
- (interactive " P" )
144
- (cider--switch-to-repl-buffer (cider-default-connection) set-namespace))
145
-
146
- (define-obsolete-function-alias 'cider-switch-to-current-repl-buffer
147
- 'cider-switch-to-default-repl-buffer " 0.10" )
148
-
149
- (defun cider-switch-to-relevant-repl-buffer (&optional set-namespace )
120
+ (defun cider-switch-to-repl-buffer (&optional set-namespace )
150
121
" Select the REPL buffer, when possible in an existing window.
151
122
The buffer chosen is based on the file open in the current buffer.
152
123
@@ -169,7 +140,7 @@ of the namespace in the Clojure source buffer."
169
140
" Load the current buffer into the relevant REPL buffer and switch to it."
170
141
(interactive " P" )
171
142
(cider-load-buffer)
172
- (cider-switch-to-relevant- repl-buffer set-namespace))
143
+ (cider-switch-to-repl-buffer set-namespace))
173
144
174
145
(defun cider-switch-to-last-clojure-buffer ()
175
146
" Switch to the last Clojure buffer.
@@ -285,7 +256,6 @@ Returns to the buffer in which the command was invoked."
285
256
" --"
286
257
[" Set ns" cider-repl-set-ns]
287
258
[" Switch to REPL" cider-switch-to-repl-buffer]
288
- [" Switch to Relevant REPL" cider-switch-to-relevant-repl-buffer]
289
259
[" Toggle REPL Pretty Print" cider-repl-toggle-pretty-printing]
290
260
[" Clear REPL output" cider-find-and-clear-repl-output]
291
261
" --"
0 commit comments