;;; compile.el --- run compiler as inferior of Emacs, parse error messages.
-;; Copyright (C) 1985, 86, 87, 93, 94 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 86, 87, 93, 94, 1995 Free Software Foundation, Inc.
;; Author: Roland McGrath <roland@prep.ai.mit.edu>
;; Maintainer: FSF
errors))
(defsubst compilation-buffer-p (buffer)
- (assq 'compilation-error-list (buffer-local-variables buffer)))
+ (or compilation-minor-mode (eq major-mode 'compilation-mode)))
(defun compilation-next-error (n)
"Move point to the next error in the compilation buffer.