# HG changeset patch # User Juri Linkov # Date 1103181404 0 # Node ID 067d5dcfe531ef532f183dc3a2dfa6e0399e0106 # Parent b24e485e88f764998057976f0d2dc9acfcd98d21 (grep-match-face): New defvar. (grep-mode-font-lock-keywords): Use grep-match-face instead of compilation-column-face to highlight grep matches. diff -r b24e485e88f7 -r 067d5dcfe531 lisp/progmodes/grep.el --- a/lisp/progmodes/grep.el Thu Dec 16 07:16:17 2004 +0000 +++ b/lisp/progmodes/grep.el Thu Dec 16 07:16:44 2004 +0000 @@ -275,6 +275,9 @@ (defvar grep-error-face compilation-error-face "Face name to use for grep error messages.") +(defvar grep-match-face 'match + "Face name to use for grep matches.") + (defvar grep-mode-font-lock-keywords '(;; Command output lines. ("^\\([A-Za-z_0-9/\.+-]+\\)[ \t]*:" 1 font-lock-function-name-face) @@ -291,7 +294,7 @@ (2 compilation-line-face)) ;; Highlight grep matches and delete markers ("\\(\033\\[01;41m\\)\\(.*?\\)\\(\033\\[00m\\)" - (2 compilation-column-face) + (2 grep-match-face) ((lambda (p)) (progn ;; Delete markers with `replace-match' because it updates