aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-11-25 03:05:00 +0000
committerRichard M. Stallman2004-11-25 03:05:00 +0000
commitbde94a7f475a7b6ecdfd1def20f1f459c7b97c00 (patch)
tree3a8cde73ff1f6401f6a676050c3b4c0ac1d8239c
parent335dd1f105c93aa87d253354a0985bfde2415bfb (diff)
downloademacs-bde94a7f475a7b6ecdfd1def20f1f459c7b97c00.tar.gz
emacs-bde94a7f475a7b6ecdfd1def20f1f459c7b97c00.zip
(grep-regexp-alist): Don't match parens around line numbers.
-rw-r--r--lisp/progmodes/grep.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 7a13ddba6ed..fd4b716ae4b 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -247,9 +247,12 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
247 247
248;;;###autoload 248;;;###autoload
249(defvar grep-regexp-alist 249(defvar grep-regexp-alist
250 '(("^\\(.+?\\)[:( \t]+\ 250 ;; rms: I removed the code to match parens around the line number
251 ;; because it causes confusion and so we will find out if anyone needs it.
252 ;; It causes confusion with a file name that contains a number in parens.
253 '(("^\\(.+?\\)[: \t]+\
251\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\ 254\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\
252\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[:) \t]" 1 (2 . 5) (4 . 6)) 255\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[: \t]" 1 (2 . 5) (4 . 6))
253 ("^\\(.+?\\)[:(]+\\([0-9]+\\)\\([:)]\\).*?\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\)" 256 ("^\\(.+?\\)[:(]+\\([0-9]+\\)\\([:)]\\).*?\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\)"
254 1 2 257 1 2
255 ;; Calculate column positions (beg . end) of first grep match on a line 258 ;; Calculate column positions (beg . end) of first grep match on a line