aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-12 04:09:07 +0000
committerRichard M. Stallman1994-07-12 04:09:07 +0000
commit8eb2676516c6f79683a94bcf1ed1b1a2a83ecb72 (patch)
treed04c41633c495397da74e1ebe70b53eca6650245
parent673f4fc6c4c478d5ba143c35693c8efbb3885c08 (diff)
downloademacs-8eb2676516c6f79683a94bcf1ed1b1a2a83ecb72.tar.gz
emacs-8eb2676516c6f79683a94bcf1ed1b1a2a83ecb72.zip
(compilation-next-error-locus): Don't call
compilation-forget-errors if compilation is still runing.
-rw-r--r--lisp/progmodes/compile.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 784b44d3921..087c2ebf20a 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -863,7 +863,13 @@ The current buffer should be the desired compilation output buffer."
863 (error (if (> move 0) 863 (error (if (> move 0)
864 "Moved past last error") 864 "Moved past last error")
865 "Moved back past first error")) 865 "Moved back past first error"))
866 (compilation-forget-errors) 866 ;; Forget existing error messages if compilation has finished.
867 (if (not (and (get-buffer-process (current-buffer))
868 (eq (process-status
869 (get-buffer-process
870 (current-buffer)))
871 'run)))
872 (compilation-forget-errors))
867 (error (concat compilation-error-message 873 (error (concat compilation-error-message
868 (and (get-buffer-process (current-buffer)) 874 (and (get-buffer-process (current-buffer))
869 (eq (process-status 875 (eq (process-status