summaryrefslogtreecommitdiff
path: root/cider-eval.el
diff options
context:
space:
mode:
authorVitalie Spinu <spinuvit@gmail.com>2018-11-09 17:29:32 +0100
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2018-11-10 15:13:56 +0100
commit3a520ec76cdd5509bf231e49809715f20a87d74b (patch)
treec010e61c98ba6f3fd03ead7a5a8daab9c260b3dd /cider-eval.el
parent906295826d0619146d41e1582b9b3f0b96d3b68c (diff)
[Fix #2514] Don't auto-jump to warnings even when they are under stderr face
Diffstat (limited to 'cider-eval.el')
-rw-r--r--cider-eval.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/cider-eval.el b/cider-eval.el
index 67f2706b..643fc93a 100644
--- a/cider-eval.el
+++ b/cider-eval.el
@@ -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)