changeset 58493:9acfc0fb9410

(grep-regexp-alist): Don't match parens around line numbers.
author Richard M. Stallman <rms@gnu.org>
date Thu, 25 Nov 2004 03:05:00 +0000
parents 4edc8e8a8ed6
children d3f27661a6ab
files lisp/progmodes/grep.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/grep.el	Thu Nov 25 03:04:16 2004 +0000
+++ b/lisp/progmodes/grep.el	Thu Nov 25 03:05:00 2004 +0000
@@ -247,9 +247,12 @@
 
 ;;;###autoload
 (defvar grep-regexp-alist
-  '(("^\\(.+?\\)[:( \t]+\
+  ;; rms: I removed the code to match parens around the line number
+  ;; because it causes confusion and so we will find out if anyone needs it.
+  ;; It causes confusion with a file name that contains a number in parens.
+  '(("^\\(.+?\\)[: \t]+\
 \\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\
-\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[:) \t]" 1 (2 . 5) (4 . 6))
+\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[: \t]" 1 (2 . 5) (4 . 6))
     ("^\\(.+?\\)[:(]+\\([0-9]+\\)\\([:)]\\).*?\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\)"
      1 2
      ;; Calculate column positions (beg . end) of first grep match on a line