summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-12-24 06:00:03 +0000
committerJim Blandy <jimb@redhat.com>1992-12-24 06:00:03 +0000
commit57c8389c3d35a38d854e66be2a67c3cd73a2c737 (patch)
tree53ba518eea093b84a5f9abde1facd2118dc73e53 /lisp/progmodes
parent8931ecc02814ee43ef9f3f69755acd1441370f93 (diff)
downloademacs-57c8389c3d35a38d854e66be2a67c3cd73a2c737.tar.gz
* compile.el (compilation-error-regexp-alist): Tightened up
BSD/GNU regexp to insist that line number end with a colon or close-paren. * compile.el (compilation-error-regexp-alist): Add regexp for the MIPS CC distributed with Ultrix.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 8a5bd07b25b..45e4905b878 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -96,7 +96,11 @@ or when it is used with \\[next-error] or \\[compile-goto-error].")
;; /usr/src/foo/foo.c(8): warning: w may be used before set
;; or GNU utilities
;; foo.c:8: error message
- ("^\\([^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)
+ ;;
+ ;; We'll insist that the number be followed by a colon or closing
+ ;; paren, because otherwise this matches just about anything
+ ;; containing a number with spaces around it.
+ ("^\\([^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:)]" 1 2)
;; 4.3BSD lint pass 2
;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8)
("[ \t:]+\\([^:( \t\n]+\\)[ \t]*[:(]*(+[ \t]*\\([0-9]+\\))[:) \t]*$" 1 2)
@@ -119,6 +123,9 @@ or when it is used with \\[next-error] or \\[compile-goto-error].")
("in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1)
;; IBM AIX lint is too painful to do right this way. File name
;; prefixes entire sections rather than being on each line.
+
+ ;; MIPS RISC CC - the one distributed with Ultrix.
+ (": \\([^,]+\\), line \\([0-9]+\\):" 1 2)
)
"Alist that specifies how to match errors in compiler output.
Each element has the form (REGEXP FILE-IDX LINE-IDX).