@@ -191,7 +191,7 @@ Given a REPL-TYPE ('clojure, 'lumo, ...) and a FEATURE ('doc,
191191
192192(defun inf-clojure-proc (&optional no-error )
193193 " Return the current inferior Clojure process.
194- When NO-ERROR is non-nil, don't throw an error when no connection
194+ When NO-ERROR is non-nil, don't throw an error when no process
195195has been found. See also variable `inf-clojure-buffer' ."
196196 (or (get-buffer-process (if (derived-mode-p 'inf-clojure-mode )
197197 (current-buffer )
@@ -200,14 +200,14 @@ has been found. See also variable `inf-clojure-buffer'."
200200 (error " No Clojure subprocess; see variable `inf-clojure-buffer' " ))))
201201
202202(defun inf-clojure-repl-p ()
203- " Indicates if current buffer is an inf-clojure repl .
203+ " Indicates if the current buffer is an inf-clojure REPL .
204204Checks the mode and that there is a live process."
205205 (and (derived-mode-p 'inf-clojure-mode )
206206 (get-buffer-process (current-buffer ))
207207 (process-live-p (get-buffer-process (current-buffer )))))
208208
209- (defun inf-clojure-repls-list ()
210- " Return a list of all known inf-clojure repls ."
209+ (defun inf-clojure-repls ()
210+ " Return a list of all inf-clojure REPL buffers ."
211211 (let (repl-buffers)
212212 (dolist (b (buffer-list ))
213213 (with-current-buffer b
@@ -216,18 +216,18 @@ Checks the mode and that there is a live process."
216216 repl-buffers))
217217
218218(defun inf-clojure-set-repl (always-ask )
219- " Set an inf clojure buffer as the active repl .
220- If in a repl already, use that unless a prefix is used (or
219+ " Set an inf- clojure buffer as the active (default) REPL .
220+ If in a REPL buffer already, use that unless a prefix is used (or
221221ALWAYS-ASK). Otherwise get a list of all active inf-clojure
222- repls and offer a choice. Recommended to rename buffers as they
223- are created with `rename-buffer` ."
222+ REPLS and offer a choice. It's recommended to rename REPL
223+ buffers after they are created with `rename-buffer' ."
224224 (interactive " P" )
225225 (if (and (not always-ask)
226226 (inf-clojure-repl-p))
227227 (setq inf-clojure-buffer (current-buffer ))
228- (let ((repl-buffers (inf-clojure-repls-list )))
228+ (let ((repl-buffers (inf-clojure-repls)))
229229 (if (> (length repl-buffers) 0 )
230- (when-let ((repl-buffer (completing-read " Use for repl : " repl-buffers nil t )))
230+ (when-let ((repl-buffer (completing-read " Select default REPL : " repl-buffers nil t )))
231231 (setq inf-clojure-buffer (get-buffer repl-buffer)))
232232 (user-error " No buffers have an inf-clojure process" )))))
233233
@@ -275,13 +275,13 @@ mode. Default is whitespace followed by 0 or 1 single-letter colon-keyword
275275 :type 'regexp )
276276
277277(defun inf-clojure--modeline-info ()
278- " Return modeline info.
279- Either \" not connected \" or \" repl-type: buffer-name\" "
278+ " Return modeline info for `inf-clojure-minor-mode' .
279+ Either \" no process \" or \" buffer-name(repl-type) \" "
280280 (if (and (bufferp inf-clojure-buffer)
281281 (buffer-live-p inf-clojure-buffer))
282282 (with-current-buffer inf-clojure-buffer
283- (format " %s : %s " inf-clojure-repl-type (buffer-name (current-buffer ))))
284- " not connected " ))
283+ (format " %s ( %s ) " (buffer-name (current-buffer )) inf-clojure-repl-type ))
284+ " no process " ))
285285
286286(defvar inf-clojure-mode-map
287287 (let ((map (copy-keymap comint-mode-map)))
@@ -378,7 +378,7 @@ about mode line templates.
378378
379379Customize this variable to change how inf-clojure-minor-mode
380380displays its status in the mode line. The default value displays
381- the current connection . Set this variable to nil to disable the
381+ the current REPL . Set this variable to nil to disable the
382382mode line entirely."
383383 :type 'sexp
384384 :risky t )
0 commit comments