]> git.eshelyaron.com Git - emacs.git/commitdiff
(grep-regexp-alist): Don't match parens around line numbers.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Nov 2004 03:05:00 +0000 (03:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Nov 2004 03:05:00 +0000 (03:05 +0000)
lisp/progmodes/grep.el

index 7a13ddba6edf0c172af2c651e6b845981bd4f01e..fd4b716ae4b48dd4e8d712b59a3a9bc253cc9310 100644 (file)
@@ -247,9 +247,12 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
 
 ;;;###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