compilation-buffer-p instead of testing major-mode.
+1999-11-18 Gerd Moellmann <gerd@gnu.org>
+
+ * progmodes/compile.el (compilation-parse-errors): Use
+ compilation-buffer-p instead of testing major-mode.
+
1999-11-18 Richard M. Stallman <rms@caffeine.ai.mit.edu>
* mail/rmailedit.el (rmail-cease-edit): Run rmail-mode-hook.
;; Don't reparse messages already seen at last parse.
(goto-char compilation-parsing-end)
(when (and (bobp)
- (eq major-mode 'compilation-mode))
+ (compilation-buffer-p (current-buffer)))
(setq compilation-current-file nil) ; No current file at start.
;; Don't parse the first two lines as error messages.
;; This matters for grep.