1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

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.
This commit is contained in:
Mattias Engdegård 2021-07-18 20:27:03 +02:00
parent 014a67200c
commit 88cc9d22df

View file

@ -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))))