# HG changeset patch # User Karl Heuer # Date 876958498 0 # Node ID 121625bee1c8a83221b293d4dde29cd8b165f261 # Parent 7077ba8a265b3fdccd42140be6d2365c65cac305 (compilation-forget-errors): Reinit compilation-directory-stack the way compile-internal does. (compilation-parse-errors): Don't let default-directory change. diff -r 7077ba8a265b -r 121625bee1c8 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Wed Oct 15 23:33:14 1997 +0000 +++ b/lisp/progmodes/compile.el Wed Oct 15 23:34:58 1997 +0000 @@ -1547,7 +1547,7 @@ (set-marker (cdr next-error) nil))) (setq compilation-old-error-list (cdr compilation-old-error-list))) (setq compilation-error-list nil - compilation-directory-stack nil + compilation-directory-stack (list default-directory) compilation-parsing-end 1) ;; Remove the highlighting added by compile-reinitialize-errors: (let ((inhibit-read-only t)) @@ -1598,6 +1598,7 @@ (if (null compilation-error-regexp-alist) (error "compilation-error-regexp-alist is empty!")) (let* ((compilation-regexps nil) ; Variable set by compile-collect-regexps. + (default-directory default-directory) (found-desired nil) (compilation-num-errors-found 0) ;; Set up now the expanded, abbreviated directory variables