diff options
author | Gerd Moellmann <[email protected]> | 1999-11-18 15:57:55 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 1999-11-18 15:57:55 +0000 |
commit | 9dd1cf67c27706972c9b2317729a11c92aa77ca1 (patch) | |
tree | 9838ad0668aec0822c0999884af3ab39ce02b16e /lisp/progmodes | |
parent | 71447e8f88f9a6a985f17754a7cb0f515d1590b1 (diff) |
(compilation-parse-errors): Use
compilation-buffer-p instead of testing major-mode.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/compile.el | 2 |
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. |