Skip to content

Commit

Permalink
[Fix clojure-emacs#2514] Don't auto-jump to warnings even when they a…
Browse files Browse the repository at this point in the history
…re under stderr face
  • Loading branch information
vspinu committed Nov 9, 2018
1 parent 2a16ad9 commit 0de0d8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cider-eval.el
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ evaluation command. Honor `cider-auto-jump-to-error'."
(let* ((face (nth 3 info))
(note (nth 4 info))
(auto-jump (if (eq cider-auto-jump-to-error 'errors-only)
(not (eq face 'cider-warning-highlight-face))
(not (or (eq face 'cider-warning-highlight-face)
(string-match-p "warning" note)))
cider-auto-jump-to-error)))
(overlay-put overlay 'cider-note-p t)
(overlay-put overlay 'font-lock-face face)
Expand Down

0 comments on commit 0de0d8a

Please sign in to comment.