Skip to content

Commit

Permalink
[Fix clojure-emacs#2105] Fix no comment syntax defined message when l…
Browse files Browse the repository at this point in the history
…oading buffer after running failing test
  • Loading branch information
mallt committed Dec 16, 2018
1 parent f6ed304 commit 750d607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Fix jack-in from inside of remote buffers.
* [#2454](https://github.com/clojure-emacs/cider/pull/2454): Fix erratic inspector behavior when multiple REPLs are connected
* [#2467](https://github.com/clojure-emacs/cider/pull/2467): Make generic CIDER ops use any available nREPL connection.
* [#2105](https://github.com/clojure-emacs/cider/issues/2105): Fix no comment syntax defined message when loading buffer after running a failing test.

### Changes

Expand Down
7 changes: 4 additions & 3 deletions cider-eval.el
Original file line number Diff line number Diff line change
Expand Up @@ -1055,9 +1055,10 @@ for the project, it is evaluated in both REPLs."
(or (eq cider-save-file-on-load t)
(y-or-n-p (format "Save file %s? " buffer-file-name))))
(save-buffer))
(remove-overlays nil nil 'cider-temporary t)
(cider--clear-compilation-highlights)
(cider--quit-error-window)
(save-excursion
(remove-overlays nil nil 'cider-temporary t)
(cider--clear-compilation-highlights)
(cider--quit-error-window))
(let ((filename (buffer-file-name buffer))
(ns-form (cider-ns-form)))
(cider-map-repls :auto
Expand Down

0 comments on commit 750d607

Please # to comment.