aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/flymake.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index f9aa098071b..827bce4b634 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -451,6 +451,14 @@ return DEFAULT."
451 (save-restriction 451 (save-restriction
452 (widen) 452 (widen)
453 (flymake-delete-own-overlays) 453 (flymake-delete-own-overlays)
454 (setq diagnostics
455 (cl-remove-if-not
456 (lambda (diag)
457 (let ((ff (flymake--diag-full-file diag)))
458 (and ff
459 (equal (expand-file-name ff)
460 (expand-file-name (buffer-file-name))))))
461 diagnostics))
454 (mapc #'flymake--fix-line-numbers diagnostics) 462 (mapc #'flymake--fix-line-numbers diagnostics)
455 (mapc #'flymake--highlight-line diagnostics) 463 (mapc #'flymake--highlight-line diagnostics)
456 (let ((err-count (cl-count-if #'flymake--diag-errorp diagnostics)) 464 (let ((err-count (cl-count-if #'flymake--diag-errorp diagnostics))