summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-07-18 20:27:03 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-07-18 20:41:59 +0200
commit88cc9d22df3cbeac92fb280799fae48d8f839a5a (patch)
tree0cfe630c5544c3b2f0a22d2b5c2997e131e99d56 /lisp/progmodes/compile.el
parent014a67200c777d0750f1a9070aab20560a718a5b (diff)
downloademacs-88cc9d22df3cbeac92fb280799fae48d8f839a5a.tar.gz
emacs-88cc9d22df3cbeac92fb280799fae48d8f839a5a.tar.bz2
emacs-88cc9d22df3cbeac92fb280799fae48d8f839a5a.zip
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.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el2
1 files changed, 1 insertions, 1 deletions
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))))