|
From: | Pascal Quesseveur |
Subject: | Re: How to adapt compilation-error-regexp-alist |
Date: | Wed, 05 Apr 2023 10:02:41 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt) |
I modified compilation-error-regexp-alist as follows ant it works: (add-to-list 'compilation-error-regexp-alist '("^[[:blank:]]+\\([[:alnum:]/\\].*\\):\\([0-9]+\\):[[:blank:]]+\\(?:error\\|\\(warning\\)\\|\\(info\\)\\)" 1 2 nil (3 . 4) 1)) (i am not sure there are info messages from javac compiler) But I have a couple of questions. IIUW my problem comes from the fact there is at least one regexp in compilation-error-regexp-alist that matches the error line without removing spaces at beginning of file name. But there's no mean to identify that regexp. Regexp definitions are set in compilation-error-regexp-alist-alist and they don't use a uniform way of coding with makes them difficult to read. Should'nt the definition of the list change according to the programming modes used? -- Pascal Quesseveur pquessev@gmail.com
[Prev in Thread] | Current Thread | [Next in Thread] |