diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2018-06-28 08:48:41 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2018-06-28 08:48:41 +0200 |
commit | 24db03d135475c9f451ad1b7bbe16d3ec8ddfe3a (patch) | |
tree | c6564a8b3ddb3221dcd5fe834f7bc29a1f07f32a /cider-connection.el | |
parent | f504aa1052f9b927ef9c6b92d97f1ee5fc053e70 (diff) |
[#2342] Add a cider-current-connection alias for cider-current-repl
REPLs double as connections in CIDER, so it's useful to be able to refer to
them as connections in certain contexts.
This also provides backwards compatibility with older CIDER releases.
Diffstat (limited to 'cider-connection.el')
-rw-r--r-- | cider-connection.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cider-connection.el b/cider-connection.el index 03b8ff37..f25995c4 100644 --- a/cider-connection.el +++ b/cider-connection.el @@ -534,6 +534,10 @@ current buffer." (define-obsolete-function-alias 'cider-current-repl-buffer 'cider-current-repl "0.18") +;; REPLs double as connections in CIDER, so it's useful to be able to refer to +;; them as connections in certain contexts. +(defalias 'cider-current-connection #'cider-current-repl) + (defun cider-repls (&optional type) "Return cider REPLs of TYPE from the current session. If TYPE is nil, return all repls." |