From 3d21d014fac9080dfc38ff8c368ff2c99b9e6248 Mon Sep 17 00:00:00 2001 From: Vitalie Spinu Date: Sun, 21 Sep 2014 18:29:38 -0700 Subject: [Fix #814] Use `cider-current-ns` instead of `nrepl-buffer-ns` Other changes: - Don't reset `nrepl-buffer-ns` in default response handler. - Remove `cider-find-ns` (it's confusing to have two functions doing almost the same thing). - Use nil global value of `nrepl-buffer-ns`. This will allow easy detection of the cases when this variable shouldn't be used. --- cider-repl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cider-repl.el') diff --git a/cider-repl.el b/cider-repl.el index c51a83ba..cb7aa1b7 100644 --- a/cider-repl.el +++ b/cider-repl.el @@ -551,7 +551,7 @@ If NEWLINE is true then add a newline at the end of the input." (goto-char (point-max)) (cider-repl--mark-input-start) (cider-repl--mark-output-start) - (cider-eval form (cider-repl-handler (current-buffer)) nrepl-buffer-ns))) + (cider-eval form (cider-repl-handler (current-buffer))))) (defun cider-repl-return (&optional end-of-input) "Evaluate the current input string, or insert a newline. -- cgit v1.2.3