Skip to content

Commit

Permalink
Clojure layer: fix function usage in clojure layer according to cider…
Browse files Browse the repository at this point in the history
… changes

The function `cider-current-repl-buffer` does not exist anymore in cider after PR [syl20bnr#2324](clojure-emacs/cider#2324) was merged.
It broke the usage of functions in the clojure layer that sent used `spacemacs//cider-eval-in-repl-no-focus`, which sends forms to be evaluated in the repl buffer without focusing on it.
The fix is to use `cider-current-repl` instead of `cider-current-repl-buffer`
  • Loading branch information
Andre Ramos committed Jun 25, 2018
1 parent 6220ace commit 3651c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/+lang/clojure/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"Insert FORM in the REPL buffer and eval it."
(while (string-match "\\`[ \t\n\r]+\\|[ \t\n\r]+\\'" form)
(setq form (replace-match "" t t form)))
(with-current-buffer (cider-current-repl-buffer)
(with-current-buffer (cider-current-repl)
(let ((pt-max (point-max)))
(goto-char pt-max)
(insert form)
Expand Down

0 comments on commit 3651c57

Please sign in to comment.