From: Pascal Quesseveur <pquessev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to adapt compilation-error-regexp-alist
Date: Wed, 05 Apr 2023 10:02:41 +0200 [thread overview]
Message-ID: <82edoy92ou.fsf@gmail.com> (raw)
In-Reply-To: 82pm8lf32d.fsf@gmail.com
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 parent reply other threads:[~2023-04-05 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-03 14:33 How to adapt compilation-error-regexp-alist Pascal Quesseveur
2023-04-05 8:02 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=82edoy92ou.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.
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.