]> code.delx.au - gnu-emacs/commitdiff
(compilation-error-regexp-alist-alist::gcov-*): Almost rewrite. Underlines over all...
authorMasatake YAMATO <jet@gyve.org>
Fri, 2 Jun 2006 02:38:53 +0000 (02:38 +0000)
committerMasatake YAMATO <jet@gyve.org>
Fri, 2 Jun 2006 02:38:53 +0000 (02:38 +0000)
lisp/ChangeLog
lisp/progmodes/compile.el

index f4ed60dc75e55a7c3b71fa54cc00c501c8acc24f..99a3a0d04ec74e6219565a3d1b032c58716cf70a 100644 (file)
@@ -1,3 +1,10 @@
+2006-06-02  Masatake YAMATO  <jet@gyve.org>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist::gcov-*): 
+
+       Almost rewrite. Underlines over all lines of gcov output are too 
+       uncomfortable to read.  Suggested by Dan Nicolaescu.
+
 2006-06-01  Luc Teirlinck  <teirllm@auburn.edu>
 
        * progmodes/inf-lisp.el (inferior-lisp-mode): Doc fixes.
index 1649a2533ba683f4be7ebd27929b53b7d24c578f..5da86972ec546570fc10d7e20a0730483a2224e1 100644 (file)
@@ -293,15 +293,34 @@ File = \\(.+\\), Line = \\([0-9]+\\)\\(?:, Column = \\([0-9]+\\)\\)?"
 \\(?:: \\(warning:\\)?\\|$\\| ),\\)" 1 2 nil (3))
 
     (gcov-file
-     "^ +-:    \\(0\\):Source:\\(.+\\)$" 2 1 nil 0)
-    (gcov-bb-file
-     "^ +-:    \\(0\\):Object:\\(?:.+\\)$" nil 1 nil 0)
-    (gcov-never-called-line
-     "^ +\\(#####\\): +\\([0-9]+\\):.+$" nil 2 nil 2 nil
-     (1 compilation-error-face))
+     "^ *-: *\\(0\\):Source:\\(.+\\)$" 
+     2 1 nil 0 nil
+     (1 compilation-line-face prepend) (2 compilation-info-face prepend))
+    (gcov-header
+     "^ *-: *\\(0\\):\\(?:Object\\|Graph\\|Data\\|Runs\\|Programs\\):.+$"
+     nil 1 nil 0 nil
+     (1 compilation-line-face prepend))
+    ;; Underlines over all lines of gcov output are too uncomfortable to read.
+    ;; However, hyperlinks embedded in the lines are useful.
+    ;; So I put default face on the lines; and then put
+    ;; compilation-*-face by manually to eliminate the underlines.
+    ;; The hyperlinks are still effective.
+    (gcov-nomark
+     "^ *-: *\\([1-9]\\|[0-9]\\{2,\\}\\):.*$"
+     nil 1 nil 0 nil
+     (0 'default t)
+     (1 compilation-line-face prepend))
     (gcov-called-line
-     "^ *[0-9]+: +\\([1-9]\\|[0-9]\\{2,\\}\\):.*$" nil 1 nil 0)
-)
+     "^ *\\([0-9]+\\): *\\([0-9]+\\):.*$"
+     nil 2 nil 0 nil 
+     (0 'default t)
+     (1 compilation-info-face prepend) (2 compilation-line-face prepend))
+    (gcov-never-called
+     "^ *\\(#####\\): *\\([0-9]+\\):.*$" 
+     nil 2 nil 2 nil
+     (0 'default t)
+     (1 compilation-error-face prepend) (2 compilation-line-face prepend))
+    )
   "Alist of values for `compilation-error-regexp-alist'.")
 
 (defcustom compilation-error-regexp-alist