diff options
| author | Karl Heuer | 1997-10-15 23:34:58 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-15 23:34:58 +0000 |
| commit | 355345fd1ae7f6fd330bb5216d66f6ca476959cf (patch) | |
| tree | 62ea001919137aeb6e3ac8704833019d601abfa2 | |
| parent | 3375a61ce61d19c742b607f462d6a8d58bc670ac (diff) | |
| download | emacs-355345fd1ae7f6fd330bb5216d66f6ca476959cf.tar.gz emacs-355345fd1ae7f6fd330bb5216d66f6ca476959cf.zip | |
(compilation-forget-errors):
Reinit compilation-directory-stack the way compile-internal does.
(compilation-parse-errors): Don't let default-directory change.
| -rw-r--r-- | lisp/progmodes/compile.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 54e0ed1808b..ba4b9b6778c 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1547,7 +1547,7 @@ Selects a window with point at SOURCE, with another window displaying ERROR." | |||
| 1547 | (set-marker (cdr next-error) nil))) | 1547 | (set-marker (cdr next-error) nil))) |
| 1548 | (setq compilation-old-error-list (cdr compilation-old-error-list))) | 1548 | (setq compilation-old-error-list (cdr compilation-old-error-list))) |
| 1549 | (setq compilation-error-list nil | 1549 | (setq compilation-error-list nil |
| 1550 | compilation-directory-stack nil | 1550 | compilation-directory-stack (list default-directory) |
| 1551 | compilation-parsing-end 1) | 1551 | compilation-parsing-end 1) |
| 1552 | ;; Remove the highlighting added by compile-reinitialize-errors: | 1552 | ;; Remove the highlighting added by compile-reinitialize-errors: |
| 1553 | (let ((inhibit-read-only t)) | 1553 | (let ((inhibit-read-only t)) |
| @@ -1598,6 +1598,7 @@ See variable `compilation-parse-errors-function' for the interface it uses." | |||
| 1598 | (if (null compilation-error-regexp-alist) | 1598 | (if (null compilation-error-regexp-alist) |
| 1599 | (error "compilation-error-regexp-alist is empty!")) | 1599 | (error "compilation-error-regexp-alist is empty!")) |
| 1600 | (let* ((compilation-regexps nil) ; Variable set by compile-collect-regexps. | 1600 | (let* ((compilation-regexps nil) ; Variable set by compile-collect-regexps. |
| 1601 | (default-directory default-directory) | ||
| 1601 | (found-desired nil) | 1602 | (found-desired nil) |
| 1602 | (compilation-num-errors-found 0) | 1603 | (compilation-num-errors-found 0) |
| 1603 | ;; Set up now the expanded, abbreviated directory variables | 1604 | ;; Set up now the expanded, abbreviated directory variables |