Commit 9dd1cf67 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(compilation-parse-errors): Use

compilation-buffer-p instead of testing major-mode.
parent 71447e8f
1999-11-18 Gerd Moellmann <gerd@gnu.org>
* progmodes/compile.el (compilation-parse-errors): Use
compilation-buffer-p instead of testing major-mode.
1999-11-18 Richard M. Stallman <rms@caffeine.ai.mit.edu> 1999-11-18 Richard M. Stallman <rms@caffeine.ai.mit.edu>
* mail/rmailedit.el (rmail-cease-edit): Run rmail-mode-hook. * mail/rmailedit.el (rmail-cease-edit): Run rmail-mode-hook.
......
...@@ -1773,7 +1773,7 @@ See variable `compilation-parse-errors-function' for the interface it uses." ...@@ -1773,7 +1773,7 @@ See variable `compilation-parse-errors-function' for the interface it uses."
;; Don't reparse messages already seen at last parse. ;; Don't reparse messages already seen at last parse.
(goto-char compilation-parsing-end) (goto-char compilation-parsing-end)
(when (and (bobp) (when (and (bobp)
(eq major-mode 'compilation-mode)) (compilation-buffer-p (current-buffer)))
(setq compilation-current-file nil) ; No current file at start. (setq compilation-current-file nil) ; No current file at start.
;; Don't parse the first two lines as error messages. ;; Don't parse the first two lines as error messages.
;; This matters for grep. ;; This matters for grep.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment