summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pfeiffer <occitan@esperanto.org>2004-06-18 23:01:30 +0000
committerDaniel Pfeiffer <occitan@esperanto.org>2004-06-18 23:01:30 +0000
commit186ac3d480fe5540301eb64aa25016e83d96ec96 (patch)
tree04ee15978c28095a1a8b5a1a6a0fe80461ba455f
parentc0090c20f88d1e8c99e9823db5b9cc25d98672bc (diff)
downloademacs-186ac3d480fe5540301eb64aa25016e83d96ec96.tar.gz
(grep-regexp-alist): Match columns and column ranges, if present.
-rw-r--r--lisp/progmodes/grep.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index aa81f8aa770..aa9a50a2580 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -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'.")