all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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




      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

* 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.
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.