]> git.eshelyaron.com Git - emacs.git/commitdiff
(grep-regexp-alist): Match columns and column ranges, if present.
authorDaniel Pfeiffer <occitan@esperanto.org>
Fri, 18 Jun 2004 23:01:30 +0000 (23:01 +0000)
committerDaniel Pfeiffer <occitan@esperanto.org>
Fri, 18 Jun 2004 23:01:30 +0000 (23:01 +0000)
lisp/progmodes/grep.el

index aa81f8aa770b45794f1173a3ecf7e23f2c251960..aa9a50a25804361fe57246bf5bdf6f976a4f4667 100644 (file)
@@ -216,7 +216,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
 `complation-last-buffer' rather than `grep-last-buffer'.")
 
 (defvar grep-regexp-alist
-  '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)
+  '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)\\([:) \t]\\)\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\3\\)?" 1 2 (4 . 5))
     ("^Binary file \\(.+\\) matches$" 1 nil nil 1))
   "Regexp used to match grep hits.  See `compilation-error-regexp-alist'.")