diff options
| -rw-r--r-- | lisp/progmodes/grep.el | 7 |
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 |