aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1992-09-29 23:59:26 +0000
committerRoland McGrath1992-09-29 23:59:26 +0000
commit3f9e2e5121d21175914ec838e90f42c337a74dcf (patch)
treec388ee636ed8fe78f39e2bf58808bf4ec534ca32
parentc70e8d27e5c1f57e9867b416f6e5a4b5d6dc8794 (diff)
downloademacs-3f9e2e5121d21175914ec838e90f42c337a74dcf.tar.gz
emacs-3f9e2e5121d21175914ec838e90f42c337a74dcf.zip
(compilation-parse-errors): When we reach FIND-AT-LEAST errors, keep going
until we have seen all the consecutive errors in the same file.
-rw-r--r--lisp/progmodes/compile.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 29290527cbd..39b62179b7d 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -942,9 +942,16 @@ See variable `compilation-parse-errors-function' for the interface it uses."
942 (cons (cons (point-marker) 942 (cons (cons (point-marker)
943 (cons filename linenum)) 943 (cons filename linenum))
944 compilation-error-list)))) 944 compilation-error-list))))
945 (setq compilation-num-errors-found (1+ compilation-num-errors-found)) 945 (setq compilation-num-errors-found
946 (1+ compilation-num-errors-found))
946 (and find-at-least (>= compilation-num-errors-found find-at-least) 947 (and find-at-least (>= compilation-num-errors-found find-at-least)
947 ;; We have found as many new errors as the user wants. 948 ;; We have found as many new errors as the user wants.
949 ;; We continue to parse until we have seen all
950 ;; the consecutive errors in the same file,
951 ;; so the error positions will be recorded as markers
952 ;; in this buffer that might change.
953 (not (equal (car (cdr (nth 0 compilation-error-list)))
954 (car (cdr (nth 1 compilation-error-list)))))
948 (setq found-desired t))) 955 (setq found-desired t)))
949 (t 956 (t
950 (error "compilation-parse-errors: impossible regexp match!"))) 957 (error "compilation-parse-errors: impossible regexp match!")))