From: Mattias EngdegÄrd Date: Sun, 18 Jul 2021 18:27:03 +0000 (+0200) Subject: Count compile errors when FILE is a function X-Git-Tag: emacs-28.0.90~1815 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88cc9d22df3cbeac92fb280799fae48d8f839a5a;p=emacs.git 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. --- 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))))