Commit 2e4301ef authored by Roland McGrath's avatar Roland McGrath
Browse files

(compilation-parse-errors): After skipping two lines, move one char back so

point before the newline.
parent a223b10d
......@@ -917,7 +917,12 @@ See variable `compilation-parse-errors-function' for the interface it uses."
;; Don't parse the first two lines as error messages.
;; This matters for grep.
(if (bobp)
(forward-line 2))
(forward-line 2)
;; Move back so point is before the newline.
;; This matters because some error regexps use \n instead of ^
;; to be faster.
(forward-char -1)))
;; Compile all the regexps we want to search for into one.
(setq regexp (concat "\\(" compilation-enter-directory-regexp "\\)\\|"
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