]> git.eshelyaron.com Git - emacs.git/commitdiff
Count compile errors when FILE is a function
authorMattias Engdegård <mattiase@acm.org>
Sun, 18 Jul 2021 18:27:03 +0000 (20:27 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 18 Jul 2021 18:41:59 +0000 (20:41 +0200)
* 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

index 7a02c3a896ff2365857f44416013e57633407719..e4363e11b81c2339d404005190d1792f3a965e64 100644 (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))))