Skip to content

Commit 6c5f89b

Browse files
committed
Touch up the previous commit
1 parent 24b9891 commit 6c5f89b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cider-connection.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,16 +451,16 @@ about this buffer (like variable `cider-repl-type')."
451451
(plist-get nrepl-endpoint :port))))))
452452

453453
(defvar-local cider-connection-capabilities '()
454-
"A list of some of the capabilites of this connection buffer.
455-
Aka what assumptions we make about the runtime.
454+
"A list of some of the capabilities of this connection buffer.
455+
In other words - what assumptions we make about the runtime.
456456
This is more general than
457457
`cider-nrepl-op-supported-p' and `cider-library-present-p'.
458458
But does not need to replace them.")
459459

460-
(defun cider-connection-has-capability-p (capability :optional connection-buffer)
461-
"Return non nil when the cider connection has CAPABILITY.
460+
(defun cider-connection-has-capability-p (capability &optional conn-buf)
461+
"Return non nil when the cider connection has CAPABILITY for CONN-BUF.
462462
By default it assumes the connection buffer is current."
463-
(with-current-buffer (or connection-buffer (current-buffer))
463+
(with-current-buffer (or conn-buf (current-buffer))
464464
(member capability cider-connection-capabilities)))
465465

466466

0 commit comments

Comments
 (0)