Mercurial > emacs
changeset 10842:076c2c2b4f06
(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.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sun, 26 Feb 1995 21:37:30 +0000 |
parents | 88926963f1ae |
children | 2f2e5033b3bb |
files | lisp/progmodes/compile.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/compile.el Sun Feb 26 21:05:42 1995 +0000 +++ b/lisp/progmodes/compile.el Sun Feb 26 21:37:30 1995 +0000 @@ -1,6 +1,6 @@ ;;; 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 @@ -586,7 +586,7 @@ 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.