unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 56249@debbugs.gnu.org, "Rudolf Adamkovič" <salutis@me.com>
Subject: bug#56249: 29.0.50; Compilation buffer parsing "ERROR:" incorrectly
Date: Wed, 29 Jun 2022 17:43:27 +0200	[thread overview]
Message-ID: <63EDC249-0201-4EA6-BA54-18679F1C7BB0@acm.org> (raw)
In-Reply-To: <87a69vhcvr.fsf@gnus.org>

29 juni 2022 kl. 14.28 skrev Lars Ingebrigtsen <larsi@gnus.org>:

>> What about asking the authors to follow the GNU message format
>> instead? Failing that, a new pattern could be used. It would be much
>> simpler than `gnu`.
> 
> Sure, the latter makes sense.

Thank you, I have now made the `gnu` rule more robust again. It no longer accidentally matches the example given.

Rudolf, I suggest you customise your Emacs by adding something like

  ("^ *ERROR:\\(?1:[^\n:]+\\):\\(?2:[[:digit:]]+\\): " 1 2)

or, equivalently,

   `(,(rx
       bol (* " ") "ERROR:"
       (group-n 1                       ; file
         (+ (not (in ":\n"))))
       ":"
       (group-n 2 (+ digit))            ; line
       ": ")
     1 2)

to `compilation-regexp-alist`. We (that is, I) have no idea what is emitting the message and how stable the format is, so adding it to the standard compilation rule list is a fool's errand. We wouldn't even know what to call it.

If you have deeper knowledge of the tool and how it works then you might want to help us clarify it or even get the message updated to the standard GNU format. Some tools are able to use that format even if they do not emit it by default.






  reply	other threads:[~2022-06-29 15:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27  7:04 bug#56249: 29.0.50; Compilation buffer parsing "ERROR:" incorrectly Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-27  8:09 ` Lars Ingebrigtsen
2022-06-28 17:36   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-29  9:53     ` Lars Ingebrigtsen
2022-06-29 12:16 ` Mattias Engdegård
2022-06-29 12:28   ` Lars Ingebrigtsen
2022-06-29 15:43     ` Mattias Engdegård [this message]
2022-06-29 19:47       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-29 20:09         ` Mattias Engdegård
2022-06-30  9:04       ` Lars Ingebrigtsen
2022-06-30 11:08         ` Mattias Engdegård
2022-07-05 16:04           ` Mattias Engdegård
2022-07-05 16:50             ` Lars Ingebrigtsen
2022-07-10 13:49               ` Mattias Engdegård
2022-07-11  9:48                 ` Lars Ingebrigtsen
2022-07-11 10:31                   ` Mattias Engdegård
2022-07-14  6:55                     ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=63EDC249-0201-4EA6-BA54-18679F1C7BB0@acm.org \
    --to=mattiase@acm.org \
    --cc=56249@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=salutis@me.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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