]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-next-error-locus): Don't call
authorRichard M. Stallman <rms@gnu.org>
Tue, 12 Jul 1994 04:09:07 +0000 (04:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 12 Jul 1994 04:09:07 +0000 (04:09 +0000)
compilation-forget-errors if compilation is still runing.

lisp/progmodes/compile.el

index 784b44d3921d16ab5954dcf17377c8bb1b111957..087c2ebf20a1d32dad6e77ba4a3114ac121861d2 100644 (file)
@@ -863,7 +863,13 @@ The current buffer should be the desired compilation output buffer."
                     (error (if (> move 0)
                                "Moved past last error")
                            "Moved back past first error"))
-               (compilation-forget-errors)
+               ;; Forget existing error messages if compilation has finished.
+               (if (not (and (get-buffer-process (current-buffer))
+                             (eq (process-status
+                                  (get-buffer-process
+                                   (current-buffer)))
+                                 'run)))
+                   (compilation-forget-errors))
                (error (concat compilation-error-message
                               (and (get-buffer-process (current-buffer))
                                    (eq (process-status