]> git.eshelyaron.com Git - emacs.git/commitdiff
(grep-regexp-alist): Match an optional ^[[K
authorDan Nicolaescu <dann@ics.uci.edu>
Tue, 8 Feb 2005 16:22:25 +0000 (16:22 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Tue, 8 Feb 2005 16:22:25 +0000 (16:22 +0000)
that some versions of grep produce.
(grep-mode-font-lock-keywords): Likewise.

lisp/ChangeLog
lisp/progmodes/grep.el

index f917dda73fa4f68435c6b76485ae794cbb3bab56..da823b5f8cbd6b03136d1c31e15f09130a11a794 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-08  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * progmodes/grep.el (grep-regexp-alist): Match an optional ^[[K
+       that some versions of grep produce.
+       (grep-mode-font-lock-keywords): Likewise.
+
 2005-02-09  Nick Roberts  <nickrob@snap.net.nz>
 
        * progmodes/gdb-ui.el (gdb-location-list): New variable.
index a3b1ab3abdd029218a9ec59f74f6b23baac39931..ac052a893b24613577e0586f721c025f89f7b582 100644 (file)
@@ -253,7 +253,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
   '(("^\\(.+?\\)[: \t]+\
 \\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\
 \\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[: \t]" 1 (2 . 5) (4 . 6))
-    ("^\\(.+?\\)[:(]+\\([0-9]+\\)\\([:)]\\).*?\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\)"
+    ("^\\(.+?\\)[:(]+\\([0-9]+\\)\\([:)]\\).*?\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\(\033\\[K\\)?\\)"
      1 2
      ;; Calculate column positions (beg . end) of first grep match on a line
      ((lambda ()
@@ -293,7 +293,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
       (1 compilation-warning-face)
       (2 compilation-line-face))
      ;; Highlight grep matches and delete markers
-     ("\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\)"
+     ("\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\(\033\\[K\\)?\\)"
       (2 grep-match-face)
       ((lambda (p))
        (progn