]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-parse-errors): After skipping two lines, move one char back so
authorRoland McGrath <roland@gnu.org>
Thu, 15 Jul 1993 03:08:17 +0000 (03:08 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 15 Jul 1993 03:08:17 +0000 (03:08 +0000)
point before the newline.

lisp/progmodes/compile.el

index 88daa725119ef4f0f3f63a1486a9df36e1b18783..e13bec9f2df25acd6bafa475d96dacc6cdcd6606 100644 (file)
@@ -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))
+       (progn
+         (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 "\\)\\|"