changeset 26488:bfcbc828fdbc

(compilation-parse-errors): Use compilation-buffer-p instead of testing major-mode.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 18 Nov 1999 15:54:18 +0000
parents 7c51cdc36b3a
children 1a438767af51
files lisp/progmodes/compile.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Thu Nov 18 13:34:19 1999 +0000
+++ b/lisp/progmodes/compile.el	Thu Nov 18 15:54:18 1999 +0000
@@ -1773,7 +1773,7 @@
     ;; 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.