changeset 98081:1fa38489f0a6

(flymake-parse-err-lines): Filter out errors occurring in different files.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 07 Sep 2008 19:05:05 +0000
parents 0b2ff37e6e72
children b254f224b1f4
files lisp/progmodes/flymake.el
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/flymake.el	Sun Sep 07 19:04:53 2008 +0000
+++ b/lisp/progmodes/flymake.el	Sun Sep 07 19:05:05 2008 +0000
@@ -854,11 +854,9 @@
                                       (flymake-ler-file line-err-info)))
 	(setq line-err-info (flymake-ler-set-full-file line-err-info real-file-name))
 
-	(if (flymake-same-files real-file-name source-file-name)
-	    (setq line-err-info (flymake-ler-set-file line-err-info nil))
-	  (setq line-err-info (flymake-ler-set-file line-err-info (file-name-nondirectory real-file-name))))
-
-	(setq err-info-list (flymake-add-err-info err-info-list line-err-info)))
+	(when (flymake-same-files real-file-name source-file-name)
+	  (setq line-err-info (flymake-ler-set-file line-err-info nil))
+	  (setq err-info-list (flymake-add-err-info err-info-list line-err-info))))
       (flymake-log 3 "parsed '%s', %s line-err-info" (nth idx lines) (if line-err-info "got" "no"))
       (setq idx (1+ idx)))
     err-info-list))