Subject: bug#70794: closed (Re: bug#70794: 30.0.50; Add Rust compilation regex)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 22 May 2025 13:11:02 +0000

Your bug report

#70794: 30.0.50; Add Rust compilation regex

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
70794: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70794
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#70794: 30.0.50; Add Rust compilation regex
From: Mattias Engdegård <[email-masked]>
To: Vincenzo Pupillo <[email-masked]>
Cc: [email-masked], Randy Taylor <[email-masked]>, Eli Zaretskii <[email-masked]>, Ergus <[email-masked]>, Stefan Kangas <[email-masked]>
Date: Thu, 22 May 2025 15:09:58 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Thank you Vincenzo, that looks fine. Pushed to master.

Subject: 30.0.50; Add Rust compilation regex
From: Ergus <[email-masked]>
To: [email-masked]
Date: Mon, 06 May 2024 03:28:43 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi:

Recently working with rust I have noticed that emacs does not recognizes
the rust/cargo error patterns.

Considering that emacs has now the rust-ts-mode, it may worth adding
the rust/cargo error patterns to compile when using that mode

In my system so far I have this:

```
(with-eval-after-load 'rust-ts-mode
  (with-eval-after-load 'compile
    (add-to-list
     'compilation-error-regexp-alist-alist
     `(cargo
       "\\(?:\\(?4:error\\)\\|\\(?5:warning\\)\\):[^\0]+?--> \\(?1:[^:]+\\):\\(?2:[[:digit:]]+\\):\\(?3:[[:digit:]]+\\)"
       1 2 3 (5)
       nil
       (5 compilation-warning-face)
       (4 compilation-error-face)))

    (add-to-list 'compilation-error-regexp-alist 'cargo)))

```

Maybe a more frequent rust user has a more general regex to
recommend. But this one works for me.

WDYT?