aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>1999-11-18 15:57:55 +0000
committerGerd Moellmann <[email protected]>1999-11-18 15:57:55 +0000
commit9dd1cf67c27706972c9b2317729a11c92aa77ca1 (patch)
tree9838ad0668aec0822c0999884af3ab39ce02b16e /lisp/progmodes
parent71447e8f88f9a6a985f17754a7cb0f515d1590b1 (diff)
(compilation-parse-errors): Use
compilation-buffer-p instead of testing major-mode.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index efe7851b18..dca54808e1 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1773,7 +1773,7 @@ See variable `compilation-parse-errors-function' for the interface it uses."
;; 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.