diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2015-08-27 18:23:09 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2015-08-27 18:23:09 +0300 |
commit | b9d9fdb0388f937ba2e04644c167971825797732 (patch) | |
tree | 4e4ad2c4a8925e5b61db24037cb84672db7edb12 /cider-interaction.el | |
parent | 05d1a3e3afe5b0873acf81f013e630564eba3c3d (diff) |
Add a simple wrapper for nrepl-op-supported-p
Diffstat (limited to 'cider-interaction.el')
-rw-r--r-- | cider-interaction.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cider-interaction.el b/cider-interaction.el index d4391692..fe18c95e 100644 --- a/cider-interaction.el +++ b/cider-interaction.el @@ -292,7 +292,7 @@ the project associated with a connection and the default connection.") (defun cider-ensure-op-supported (op) "Check for support of middleware op OP. Signal an error if it is not supported." - (unless (nrepl-op-supported-p op (cider-current-repl-buffer)) + (unless (cider-nrepl-op-supported-p op) (error "Can't find nREPL middleware providing op \"%s\". Please, install (or update) cider-nrepl %s and restart CIDER" op (upcase cider-version)))) (defun cider--check-required-nrepl-ops () @@ -1474,7 +1474,7 @@ into a new error buffer." "Make an error handler for BUFFER, EX, ROOT-EX and SESSION. This function determines how the error buffer is shown, and then delegates the actual error content to the eval or op handler." - (if (nrepl-op-supported-p "stacktrace" (cider-current-repl-buffer)) + (if (cider-nrepl-op-supported-p "stacktrace") (cider-default-err-op-handler session) (cider-default-err-eval-handler session))) |