1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(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.
This commit is contained in:
Roland McGrath 1995-02-26 21:37:30 +00:00
parent c1ff6dac5c
commit 8fca6c30ae

View file

@ -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 @@ Just inserts the text, but uses `insert-before-markers'."
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.