summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1997-10-15 23:34:58 +0000
committerKarl Heuer <kwzh@gnu.org>1997-10-15 23:34:58 +0000
commit355345fd1ae7f6fd330bb5216d66f6ca476959cf (patch)
tree62ea001919137aeb6e3ac8704833019d601abfa2 /lisp/progmodes
parent3375a61ce61d19c742b607f462d6a8d58bc670ac (diff)
downloademacs-355345fd1ae7f6fd330bb5216d66f6ca476959cf.tar.gz
(compilation-forget-errors):
Reinit compilation-directory-stack the way compile-internal does. (compilation-parse-errors): Don't let default-directory change.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el3
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."
(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 @@ See variable `compilation-parse-errors-function' for the interface it uses."
(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