1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-19 18:13:55 +00:00

(compilation-parse-errors): Use

compilation-buffer-p instead of testing major-mode.
This commit is contained in:
Gerd Moellmann 1999-11-18 15:57:55 +00:00
parent 71447e8f88
commit 9dd1cf67c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
* mail/rmailedit.el (rmail-cease-edit): Run rmail-mode-hook.

View File

@ -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.