Index: emacs/lisp/progmodes/grep.el
diff -c emacs/lisp/progmodes/grep.el:1.41 emacs/lisp/progmodes/grep.el:1.42
*** emacs/lisp/progmodes/grep.el:1.41 Mon Aug 1 08:43:45 2005
--- emacs/lisp/progmodes/grep.el Thu Aug 4 01:08:54 2005
***************
*** 248,260 ****
;;;###autoload
(defvar grep-regexp-alist
! ;; 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]+\\)\\4\\)?\\.?\\([0-9]+\\)?\\)?\\2"
! 1 (3 . 6) (5 . 7))
("^\\(\\(.+?\\):\\([0-9]+\\):\\).*?\
\\(\033\\[01;31m\\(?:\033\\[K\\)?\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)"
2 3
--- 248,259 ----
;;;###autoload
(defvar grep-regexp-alist
! '(("^\\([^:\n]+\\)\\(:[ \t]*\\)\\([0-9]+\\)\\2"
! 1 3)
! ;; Rule to match column numbers is commented out since no known grep
! ;; produces them
! ;; ("^\\([^:\n]+\\)\\(:[
\t]*\\)\\([0-9]+\\)\\2\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\2\\)?"
! ;; 1 3 (4 . 5))
("^\\(\\(.+?\\):\\([0-9]+\\):\\).*?\
\\(\033\\[01;31m\\(?:\033\\[K\\)?\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)"
2 3
***************
*** 284,289 ****
--- 283,291 ----
(defvar grep-match-face 'match
"Face name to use for grep matches.")
+ (defvar grep-context-face 'shadow
+ "Face name to use for grep context lines.")
+
(defvar grep-mode-font-lock-keywords
'(;; Command output lines.
("^\\([A-Za-z_0-9/\.+-]+\\)[ \t]*:" 1 font-lock-function-name-face)
***************
*** 298,303 ****
--- 300,306 ----
(0 '(face nil message nil help-echo nil mouse-face nil) t)
(1 grep-error-face)
(2 grep-error-face))
+ ("^[^\n-]+-[0-9]+-.*" (0 grep-context-face))
;; Highlight grep matches and delete markers
("\\(\033\\[01;31m\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)"
;; Refontification does not work after the markers have been
_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs