From: Pascal Quesseveur <pquessev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Error message not recognized in compilation buffer
Date: Fri, 21 Jun 2019 12:20:32 +0200 [thread overview]
Message-ID: <83lfxvxmrz.fsf@gmail.com> (raw)
In-Reply-To: CAPM58ogthrZEAyih7AMMfV0AJFMjGN5ta+O5v7FE+g2cfTo+AA@mail.gmail.com
>"RC" == Richard Copley <rcopley@gmail.com> writes:
RC> Have you already seen the explanation in the docstring for
RC> "compilation-error-regexp-alist"? It might also be useful to look
RC> at the existing regexps (compilation-error-regexp-alist-alist)
RC> the sample file "etc/compilation.txt" in the Emacs distribution.
Thank you. Since my post I ended up analyzing the regexps and I
managed to define one that works:
("\\([[:alnum:].]+\\)(\\([0-9].\\)) \\(?:Error\\|Warning\\): \\(?:[FEW][0-9]+ \\)"
1 2 nil nil 1)
RC> It turns out there's a note in the sample file that the predefined
RC> regexp for borland is for "Borland C++, C++Builder".
I didn't knew that.
RC> An error specification matching your example might look something
RC> like this:
RC> ("^\\([a-zA-Z]?:?[^:() \t\n]+\\)(\\([0-9]+\\)) \
RC> \\(?:Error\\|\\(Warning\\)\\|\\(Hint\\)\\):" 1 2 nil (3 . 4))
I now undestand how TYPE is working. Thanks a lot.
--
Pascal Quesseveur
pquessev@gmail.com
prev parent reply other threads:[~2019-06-21 10:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-20 7:25 Error message not recognized in compilation buffer Pascal Quesseveur
2019-06-21 9:38 ` Richard Copley
2019-06-21 10:20 ` Pascal Quesseveur [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lfxvxmrz.fsf@gmail.com \
--to=pquessev@gmail.com \
--cc=help-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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).