From 8c00ecaf6a5eba9867f7b30a8c2c8f2eff3e059a Mon Sep 17 00:00:00 2001 From: Tijs Mallaerts Date: Fri, 21 Dec 2018 21:54:24 +0100 Subject: [PATCH] [Fix #2105] Fix no comment syntax defined message when loading buffer after running failing test (#2542) --- CHANGELOG.md | 1 + cider-eval.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 731db62c2..6896139c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cider-eval.el b/cider-eval.el index 643fc93a9..4f51c4ce6 100644 --- a/cider-eval.el +++ b/cider-eval.el @@ -168,7 +168,8 @@ When invoked with a prefix ARG the command doesn't prompt for confirmation." (defun cider--quit-error-window () "Buries the `cider-error-buffer' and quits its containing window." (when-let* ((error-win (get-buffer-window cider-error-buffer))) - (quit-window nil error-win))) + (save-excursion + (quit-window nil error-win)))) ;;; Dealing with compilation (evaluation) errors and warnings