aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-08-06 01:11:41 +0000
committerJuri Linkov2005-08-06 01:11:41 +0000
commitba65be24d42b78e229c3ef18b17ef7b2f1cb987b (patch)
tree83a3e4061a175cce248f6936ec226548b39e77d4
parentfa947ef393a9755f41f54815fb8a2a10ccb7e49a (diff)
downloademacs-ba65be24d42b78e229c3ef18b17ef7b2f1cb987b.tar.gz
emacs-ba65be24d42b78e229c3ef18b17ef7b2f1cb987b.zip
(grep-regexp-alist): Set 5th arg `TYPE' to
0 instead of 1 to display binary file names as info file links. (grep-error-face): Use `compilation-error-face' instead of `font-lock-keyword-face'. (grep-mode-font-lock-keywords): Use `compilation-info-text-face' and `compilation-warning-text-face' instead of `font-lock-keyword-face'. Use `compilation-error-text-face' instead of `grep-error-face'.
-rw-r--r--lisp/ChangeLog28
-rw-r--r--lisp/progmodes/grep.el13
2 files changed, 34 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ed747aa48c..e9d4b0cb6fc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,31 @@
12005-08-06 Juri Linkov <juri@jurta.org>
2
3 * progmodes/compile.el (compilation-mode-font-lock-keywords):
4 Use `compilation-text-face', `compilation-info-text-face' and
5 `compilation-error-text-face' instead of `font-lock-keyword-face'.
6 (compilation-error): New face.
7 (compilation-error-file-name): Inherit from
8 `compilation-error' instead of `font-lock-warning-face'.
9 (compilation-warning-file-name): Inherit from
10 `compilation-warning' instead of `font-lock-warning-face'.
11 (compilation-info, compilation-error-file-name)
12 (compilation-warning-file-name, compilation-info-file-name)
13 (compilation-line-number, compilation-column-number): Doc fix.
14 (compilation-error-text-face, compilation-warning-text-face)
15 (compilation-info-text-face): New face variables.
16 (compilation-line-face, compilation-column-face)
17 (compilation-enter-directory-face)
18 (compilation-leave-directory-face): Doc fix.
19 (compilation-text-face): New function.
20
21 * progmodes/grep.el (grep-regexp-alist): Set 5th arg `TYPE' to
22 0 instead of 1 to display binary file names as info file links.
23 (grep-error-face): Use `compilation-error-face' instead of
24 `font-lock-keyword-face'.
25 (grep-mode-font-lock-keywords): Use `compilation-info-text-face'
26 and `compilation-warning-text-face' instead of `font-lock-keyword-face'.
27 Use `compilation-error-text-face' instead of `grep-error-face'.
28
12005-08-05 Kenichi Handa <handa@m17n.org> 292005-08-05 Kenichi Handa <handa@m17n.org>
2 30
3 * international/code-pages.el: Add autoload cookies for all coding 31 * international/code-pages.el: Add autoload cookies for all coding
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 4378a7c253d..3af5aebfc6a 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -261,7 +261,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
261 (lambda () (- (match-end 5) (match-end 1) 261 (lambda () (- (match-end 5) (match-end 1)
262 (- (match-end 4) (match-beginning 4))))) 262 (- (match-end 4) (match-beginning 4)))))
263 nil 1) 263 nil 1)
264 ("^Binary file \\(.+\\) matches$" 1 nil nil 1 1)) 264 ("^Binary file \\(.+\\) matches$" 1 nil nil 0 1))
265 "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") 265 "Regexp used to match grep hits. See `compilation-error-regexp-alist'.")
266 266
267(defvar grep-error "grep hit" 267(defvar grep-error "grep hit"
@@ -272,8 +272,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
272(defvar grep-hit-face compilation-info-face 272(defvar grep-hit-face compilation-info-face
273 "Face name to use for grep hits.") 273 "Face name to use for grep hits.")
274 274
275;; compilation-error-face is wrong for this; it's designed to look like a link. 275(defvar grep-error-face compilation-error-face
276(defvar grep-error-face font-lock-keyword-face
277 "Face name to use for grep error messages.") 276 "Face name to use for grep error messages.")
278 277
279(defvar grep-match-face 'match 278(defvar grep-match-face 'match
@@ -290,12 +289,12 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
290 ;; remove match from grep-regexp-alist before fontifying 289 ;; remove match from grep-regexp-alist before fontifying
291 ("^Grep finished \\(?:(\\(matches found\\))\\|with \\(no matches found\\)\\).*" 290 ("^Grep finished \\(?:(\\(matches found\\))\\|with \\(no matches found\\)\\).*"
292 (0 '(face nil message nil help-echo nil mouse-face nil) t) 291 (0 '(face nil message nil help-echo nil mouse-face nil) t)
293 (1 font-lock-keyword-face nil t) 292 (1 compilation-info-text-face nil t)
294 (2 font-lock-keyword-face nil t)) 293 (2 compilation-warning-text-face nil t))
295 ("^Grep \\(exited abnormally\\) with code \\([0-9]+\\).*" 294 ("^Grep \\(exited abnormally\\) with code \\([0-9]+\\).*"
296 (0 '(face nil message nil help-echo nil mouse-face nil) t) 295 (0 '(face nil message nil help-echo nil mouse-face nil) t)
297 (1 grep-error-face) 296 (1 compilation-error-text-face)
298 (2 grep-error-face)) 297 (2 compilation-error-text-face))
299 ("^[^\n-]+-[0-9]+-.*" (0 grep-context-face)) 298 ("^[^\n-]+-[0-9]+-.*" (0 grep-context-face))
300 ;; Highlight grep matches and delete markers 299 ;; Highlight grep matches and delete markers
301 ("\\(\033\\[01;31m\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)" 300 ("\\(\033\\[01;31m\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)"