aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1995-02-26 21:37:30 +0000
committerRoland McGrath1995-02-26 21:37:30 +0000
commit8fca6c30ae3bf0bb077872abbab5f46b64a5febb (patch)
treeb1c563c9cb9cdc8db137254af5e6ff147e6ad3bb
parentc1ff6dac5c095a9e77621c511bc2599aa21eb0a1 (diff)
downloademacs-8fca6c30ae3bf0bb077872abbab5f46b64a5febb.tar.gz
emacs-8fca6c30ae3bf0bb077872abbab5f46b64a5febb.zip
(compilation-buffer-p): Check for compilation-minor-mode or
compilation-mode major mode, rather than internal state variables. Don't want to match a buffer that was once in compilation-minor-mode but is not now.
-rw-r--r--lisp/progmodes/compile.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 4cd464e1c2a..3d879313d05 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1,6 +1,6 @@
1;;; compile.el --- run compiler as inferior of Emacs, parse error messages. 1;;; compile.el --- run compiler as inferior of Emacs, parse error messages.
2 2
3;; Copyright (C) 1985, 86, 87, 93, 94 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 86, 87, 93, 94, 1995 Free Software Foundation, Inc.
4 4
5;; Author: Roland McGrath <roland@prep.ai.mit.edu> 5;; Author: Roland McGrath <roland@prep.ai.mit.edu>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -586,7 +586,7 @@ Just inserts the text, but uses `insert-before-markers'."
586 errors)) 586 errors))
587 587
588(defsubst compilation-buffer-p (buffer) 588(defsubst compilation-buffer-p (buffer)
589 (assq 'compilation-error-list (buffer-local-variables buffer))) 589 (or compilation-minor-mode (eq major-mode 'compilation-mode)))
590 590
591(defun compilation-next-error (n) 591(defun compilation-next-error (n)
592 "Move point to the next error in the compilation buffer. 592 "Move point to the next error in the compilation buffer.