[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error message not recognized in compilation buffer
From: |
Pascal Quesseveur |
Subject: |
Re: Error message not recognized in compilation buffer |
Date: |
Fri, 21 Jun 2019 12:20:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
>"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