From: Nick Roberts <nickrob@snap.net.nz>
To: bobmc@bobmc.net
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Emacs-22.1 compilation-error-regexp
Date: Tue, 6 May 2008 00:02:47 +1200 [thread overview]
Message-ID: <18462.63335.493309.993331@kahikatea.snap.net.nz> (raw)
In-Reply-To: <4817E3EB.6090601@rogers.com>
Bob McIsaac writes:
> The compilation-error-regexp works for gcc output but not for
> Openwatcom. However, it worked fine for emacs-21. It seems the regexp
> no longer accepts parentheses around the line number.
>
> ----- gcc example is ok ----
> -*- mode: compilation; default-directory: "c:/altm/acp-7-3/build/" -*-
> ../src/vi/vi_main.c:53: `xint' undeclared (first use in this function)
> ../src/vi/vi_main.c:53: (Each undeclared identifier is reported only once
>
> ------- Open Watcom Make Version 1.7 -- not ok because of line number ======
> ..\src\ctrl\lister.c(109): Error! E1009: Expecting ';' but found '{'
> ..\src\ctrl\lister.c(120): Warning! W201: Unreachable code
> ..\src\ctrl\lister.c(109): Warning! W131: No prototype found for
> function 'xif'
This isn't really my area but it's such a concise bug report it deserves a
reply. I've checked the changes below into the trunk. Can you please confirm
that they work for you? In particular, when the filename is absolute, e.g.,
c:\src\ctrl\lister.c(109): ....
--
Nick http://www.inet.net.nz/~nickrob
*** compile.el.~1.468.~ 2008-05-03 21:40:59.000000000 +1200
--- compile.el 2008-05-05 23:48:46.000000000 +1200
*************** File = \\(.+\\), Line = \\([0-9]+\\)\\(?
*** 323,328 ****
--- 323,331 ----
(sun-ada
"^\\([^, \n\t]+\\), line \\([0-9]+\\), char \\([0-9]+\\)[:., \(-]" 1 2 3)
+ (watcom
+ "\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)): \\(?:Error! E[0-9]+\\|Warning! W[0-9]+\\):" 1 2)
+
(4bsd
"\\(?:^\\|:: \\|\\S ( \\)\\(/[^ \n\t()]+\\)(\\([0-9]+\\))\
\\(?:: \\(warning:\\)?\\|$\\| ),\\)" 1 2 nil (3))
*** compilation.txt.~1.20.~ 2008-02-26 00:21:25.000000000 +1300
--- compilation.txt 2008-05-05 23:49:17.000000000 +1200
*************** keyboard handler.c(537) : warning C4005:
*** 263,268 ****
--- 263,276 ----
d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'
+ * Open Watcom
+
+ symbol: watcom
+
+ ..\src\ctrl\lister.c(109): Error! E1009: Expecting ';' but found '{'
+ ..\src\ctrl\lister.c(120): Warning! W201: Unreachable code
+
+
* Oracle pro*c
symbol: oracle
next prev parent reply other threads:[~2008-05-05 12:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 3:13 Emacs-22.1 compilation-error-regexp Bob McIsaac
2008-05-05 12:02 ` Nick Roberts [this message]
2008-05-06 3:12 ` Bob McIsaac
2008-05-06 7:58 ` Nick Roberts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18462.63335.493309.993331@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=bobmc@bobmc.net \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.