changeset 935:7aa20c8e89b7

*** empty log message ***
author Roland McGrath <roland@gnu.org>
date Tue, 04 Aug 1992 21:29:26 +0000
parents 1e2e41fd188b
children d91c2a61a3ad
files lisp/progmodes/compile.el
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Tue Aug 04 21:22:43 1992 +0000
+++ b/lisp/progmodes/compile.el	Tue Aug 04 21:29:26 1992 +0000
@@ -869,8 +869,10 @@
 		;; because we want to find matches containing LIMIT-SEARCH
 		;; but which extend past it.
 		(re-search-forward regexp nil t))
+
       ;; Figure out which constituent regexp matched.
       (cond ((match-beginning enter-group)
+	     (funcall progress)
 	     ;; The match was the enter-directory regexp.
 	     (let ((dir
 		    (file-name-as-directory
@@ -883,6 +885,7 @@
 		    (setq default-directory dir))))
 	    
 	    ((match-beginning leave-group)
+	     (funcall progress)
 	     ;; The match was the leave-directory regexp.
 	     (let ((beg (match-beginning (+ leave-group 1)))
 		   (stack compilation-directory-stack))
@@ -936,14 +939,17 @@
 				   (cons filename linenum))
 			     compilation-error-list))))
 	     (setq nfound (1+ nfound))
-	     (message "Parsing error messages...%d (%d%% of buffer)"
-		      nfound
-		      (/ (* 100 (point)) (point-max)))
+	     (funcall progress)
 	     (and find-at-least (>= nfound find-at-least)
 		  ;; We have found as many new errors as the user wants.
 		  (setq found-desired t)))
 	    (t
 	     (error "compilation-parse-errors: impossible regexp match!")))
+
+      (message "Parsing error messages...%d (%d%% of buffer)"
+	       nfound
+	       (/ (* 100 (point)) (point-max)))
+
       (and limit-search (>= (point) limit-search)
 	   ;; The user wanted a specific error, and we're past it.
 	   (setq found-desired t)))