diff options
author | Dieter Komendera <dieter@komendera.com> | 2018-10-28 21:57:05 +0100 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2018-11-18 18:36:50 +0100 |
commit | 6679d5d8d86c0ed789124556989bdedeb9a38ccc (patch) | |
tree | 21eaea4cb5cbb4180af7d2ab055483ca164074c5 /cider-client.el | |
parent | a94006196db0244abf2db424ef2e8b7b614ad4c0 (diff) |
Use symbols for repl types instead of strings and efficient comparisons
Make public functions backwards compatible by converting type string to symbol
Diffstat (limited to 'cider-client.el')
-rw-r--r-- | cider-client.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cider-client.el b/cider-client.el index 2c092fbe..ea5e5234 100644 --- a/cider-client.el +++ b/cider-client.el @@ -153,7 +153,7 @@ REQUEST is a pair list of the form (\"op\" \"operation\" \"par1-name\" \"par1\" ... ). If CONNECTION is provided dispatch to that connection instead of the current connection. Return the id of the sent message." - (nrepl-send-request request callback (or connection (cider-current-repl "any")))) + (nrepl-send-request request callback (or connection (cider-current-repl 'any)))) (defun cider-nrepl-send-sync-request (request &optional connection abort-on-input) "Send REQUEST to the nREPL server synchronously using CONNECTION. @@ -163,13 +163,13 @@ If ABORT-ON-INPUT is non-nil, the function will return nil at the first sign of user input, so as not to hang the interface." (nrepl-send-sync-request request - (or connection (cider-current-repl "any")) + (or connection (cider-current-repl 'any)) abort-on-input)) (defun cider-nrepl-send-unhandled-request (request &optional connection) "Send REQUEST to the nREPL CONNECTION and ignore any responses. Immediately mark the REQUEST as done. Return the id of the sent message." - (let* ((conn (or connection (cider-current-repl "any"))) + (let* ((conn (or connection (cider-current-repl 'any))) (id (nrepl-send-request request #'ignore conn))) (with-current-buffer conn (nrepl--mark-id-completed id)) |