GNU bug report logs - #70794
30.0.50; Add Rust compilation regex

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Mon, 6 May 2024 01:31:01 UTC

Severity: normal

Found in version 30.0.50

Done: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#70794: closed (30.0.50; Add Rust compilation regex)
Date: Thu, 22 May 2025 13:11:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 22 May 2025 15:09:58 +0200
with message-id <9D009687-76B8-4FB2-948E-E88EDA335F26 <at> gmail.com>
and subject line Re: bug#70794: 30.0.50; Add Rust compilation regex
has caused the debbugs.gnu.org bug report #70794,
regarding 30.0.50; Add Rust compilation regex
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
70794: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70794
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ergus <spacibba <at> aol.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; Add Rust compilation regex
Date: Mon, 06 May 2024 03:28:43 +0200

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?



[Message part 3 (message/rfc822, inline)]
From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Cc: 70794-done <at> debbugs.gnu.org, Randy Taylor <dev <at> rjt.dev>,
 Eli Zaretskii <eliz <at> gnu.org>, Ergus <spacibba <at> aol.com>,
 Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: bug#70794: 30.0.50; Add Rust compilation regex
Date: Thu, 22 May 2025 15:09:58 +0200
Thank you Vincenzo, that looks fine. Pushed to master.



This bug report was last modified 59 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.