emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider 6c5f89bc4e 2/2: Touch up the previous commit


From: ELPA Syncer
Subject: [nongnu] elpa/cider 6c5f89bc4e 2/2: Touch up the previous commit
Date: Sat, 3 Dec 2022 06:58:30 -0500 (EST)

branch: elpa/cider
commit 6c5f89bc4ee3813af6c6c251f13ea5cf51c7923e
Author: Bozhidar Batsov <bozhidar@batsov.dev>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Touch up the previous commit
---
 cider-connection.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cider-connection.el b/cider-connection.el
index ab71b34801..f7a18d255f 100644
--- a/cider-connection.el
+++ b/cider-connection.el
@@ -451,16 +451,16 @@ about this buffer (like variable `cider-repl-type')."
               (plist-get nrepl-endpoint :port))))))
 
 (defvar-local cider-connection-capabilities '()
-  "A list of some of the capabilites of this connection buffer.
-Aka what assumptions we make about the runtime.
+  "A list of some of the capabilities of this connection buffer.
+In other words - what assumptions we make about the runtime.
 This is more general than
 `cider-nrepl-op-supported-p' and `cider-library-present-p'.
 But does not need to replace them.")
 
-(defun cider-connection-has-capability-p (capability :optional 
connection-buffer)
-  "Return non nil when the cider connection has CAPABILITY.
+(defun cider-connection-has-capability-p (capability &optional conn-buf)
+  "Return non nil when the cider connection has CAPABILITY for CONN-BUF.
 By default it assumes the connection buffer is current."
-  (with-current-buffer (or connection-buffer (current-buffer))
+  (with-current-buffer (or conn-buf (current-buffer))
     (member capability cider-connection-capabilities)))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]