From 88cc9d22df3cbeac92fb280799fae48d8f839a5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sun, 18 Jul 2021 20:27:03 +0200 Subject: [PATCH] Count compile errors when FILE is a function * lisp/progmodes/compile.el (compilation-parse-errors): Don't omit messages from the error count when FILE is a function rather than a regexp match number. --- lisp/progmodes/compile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 7a02c3a896f..e4363e11b81 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1540,7 +1540,7 @@ to `compilation-error-regexp-alist' if RULES is nil." file line end-line col end-col (or type 2) fmt rule)) - (when (integerp file) + (when file (let ((this-type (if (consp type) (compilation-type type) (or type 2)))) -- 2.39.5